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

КОМЕНТАРІ • 107

  • @CraigOlson
    @CraigOlson Рік тому +26

    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.

    • @JakeLinux
      @JakeLinux  Рік тому +3

      Thanks for the tip, I thought about checking out home manager.

  • @FadyKuzman
    @FadyKuzman 7 місяців тому +9

    Came for Hyperland, fixed my printing issue. Thanks :D

    • @JakeLinux
      @JakeLinux  7 місяців тому +1

      Glad you found an unintended bonus. Thanks for watching!

  • @NOPerative
    @NOPerative Рік тому +24

    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.

    • @JakeLinux
      @JakeLinux  Рік тому +5

      It has been challenging to say the least, but fun, I enjoy problem solving and troubleshooting issues so this is a good time.

    • @NOPerative
      @NOPerative Рік тому +2

      @@JakeLinux No doubt. Glad you overcame the issues with your config study. Honestly, thought you would. Good vid - keep up the good work.

    • @MeraMadness
      @MeraMadness Рік тому +1

      I use Wayland for about 5 years, I didn't encounter any problems but maybe I'm lucky

    • @NOPerative
      @NOPerative Рік тому

      @@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.

    • @JakeLinux
      @JakeLinux  Рік тому +1

      @@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

  • @iynaix644
    @iynaix644 Рік тому +5

    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 :)

    • @JakeLinux
      @JakeLinux  Рік тому +3

      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.

    • @nosotrosloslobosestamosreg4115
      @nosotrosloslobosestamosreg4115 Рік тому +2

      A feture that should a must across all the Linuxverse, IMO.

    • @Dxic2k
      @Dxic2k 10 місяців тому

      @@nosotrosloslobosestamosreg4115 imma wait for Zorin gid and try that first

  • @kaajyo
    @kaajyo Рік тому +7

    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.

    • @JakeLinux
      @JakeLinux  Рік тому

      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.

  • @LosPompadores
    @LosPompadores 11 місяців тому +2

    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.

    • @JakeLinux
      @JakeLinux  11 місяців тому +1

      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.

    • @LosPompadores
      @LosPompadores 11 місяців тому

      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

  • @lamprospitsillou6325
    @lamprospitsillou6325 Рік тому +4

    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 😅

    • @JakeLinux
      @JakeLinux  Рік тому +1

      Thanks, glad you enjoyed it. There will be at least one more video on this when my challenge is over.

  • @name-last
    @name-last Рік тому +5

    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

    • @JakeLinux
      @JakeLinux  Рік тому

      I will check it out, if it is not too much work I will probably go that route.

  • @scottb4029
    @scottb4029 Рік тому +4

    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?

    • @JakeLinux
      @JakeLinux  Рік тому

      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?

  • @nosotrosloslobosestamosreg4115

    I was considering NixOS but I'm not that good.

    • @JakeLinux
      @JakeLinux  Рік тому

      It's a whole.different experience than any of the other distros I have used.

    • @nosotrosloslobosestamosreg4115
      @nosotrosloslobosestamosreg4115 Рік тому

      @@JakeLinux After watching a number of videos about it, I have to agree, and I'm to used to Debian ways.

  • @NabekenProG87
    @NabekenProG87 14 днів тому

    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

  • @PhilKulak
    @PhilKulak Рік тому +4

    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.

    • @JakeLinux
      @JakeLinux  Рік тому +3

      Yup, finally tracked that down, thank you.

    • @deidyomega
      @deidyomega 7 місяців тому

      @@JakeLinux Do you have a video on how you fixed it?

  • @torsten.breswald
    @torsten.breswald Рік тому +2

    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 ^^

  • @oatandjam
    @oatandjam Рік тому +6

    In case you're still having problems with the brightness keys, you can override the kernel using the 'boot.kernelPackages' option.

    • @JakeLinux
      @JakeLinux  Рік тому +2

      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.

  • @garzonjav
    @garzonjav Рік тому +2

    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

    • @JakeLinux
      @JakeLinux  Рік тому

      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.

  • @markmiranpt
    @markmiranpt Рік тому +1

    The way i setup themes was to use xfce4-appearance-settings and lxappearance, for me this resolved this issue.

  • @edbeckerich3737
    @edbeckerich3737 Рік тому +2

    I tried Sway, Everything I hear is it's supposed to work, not on my Intel video laptop. So I am still loving Herbstluftwm

    • @JakeLinux
      @JakeLinux  Рік тому +1

      What's not to love about Herbst, I am looking forward to getting back to it

  • @relaxdmj8769
    @relaxdmj8769 3 місяці тому +1

    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

    • @JakeLinux
      @JakeLinux  3 місяці тому +1

      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.

  • @dulanjala
    @dulanjala 6 місяців тому +1

    hotkeys not working is a wayland thing, it's for security something, like protect against key loggers and such

    • @JakeLinux
      @JakeLinux  5 місяців тому

      Yeah, I found a work around...finally.

  • @itsfish8672
    @itsfish8672 Рік тому +2

    Jake you must be a newbe on UA-cam LOL, long time no see GVJ.

    • @JakeLinux
      @JakeLinux  Рік тому

      Just fell off the turnip truck yesterday. TY!

  • @folksurvival
    @folksurvival Рік тому +2

    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.

    • @JakeLinux
      @JakeLinux  Рік тому

      I was going to check out Ragnar soon, is it similar to hyprland?

    • @rookas6274
      @rookas6274 Рік тому

      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.

  • @jackelofnar
    @jackelofnar Рік тому +4

    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.

    • @JakeLinux
      @JakeLinux  Рік тому

      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.

    • @jackelofnar
      @jackelofnar Рік тому

      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.

    • @clocked0
      @clocked0 Рік тому

      @@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

    • @zeocamo
      @zeocamo Рік тому

      @@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

    • @nani8ot
      @nani8ot 11 місяців тому +1

      @@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.

  • @madsnygaard6444
    @madsnygaard6444 Рік тому +1

    There was a bit of a glich in the matrix in regards to the audio - nice walkthrough though

    • @JakeLinux
      @JakeLinux  Рік тому +1

      Thank you. yeah audio seems to be my nemesis, there is always somethin wrong, I just can seem to get it right.

  • @SnakeScience
    @SnakeScience Рік тому +2

    Please keep making nixos videos

    • @JakeLinux
      @JakeLinux  Рік тому

      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.

  • @mrbend
    @mrbend 6 місяців тому +1

    Global hotkeys do not work in wayland (yet).

  • @wisnoskij
    @wisnoskij Рік тому +2

    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)?

    • @JakeLinux
      @JakeLinux  Рік тому +2

      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.

    • @clocked0
      @clocked0 Рік тому +1

      @@JakeLinux Makes me wonder... Would home manager be able to manage your fonts?

    • @JakeLinux
      @JakeLinux  Рік тому

      @@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.

  • @nicklam3594
    @nicklam3594 4 місяці тому +1

    please provide a link in the description with the configuration.nix

    • @JakeLinux
      @JakeLinux  4 місяці тому +1

      github.com/jdpedersen1/nixos

  • @LosPompadores
    @LosPompadores 11 місяців тому +1

    The hotkey issue is Hyprland-related.. but you probably knew that already 😁

    • @JakeLinux
      @JakeLinux  11 місяців тому

      Took me a bit, but thanks for the info.

  • @JudeDominicEstrellado
    @JudeDominicEstrellado 11 місяців тому

    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?

    • @JakeLinux
      @JakeLinux  11 місяців тому

      Thank you, no I did not use home manager or flakes.

    • @JudeDominicEstrellado
      @JudeDominicEstrellado 11 місяців тому

      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

  • @rjawiygvozd
    @rjawiygvozd Рік тому +1

    nixos wiki article for sway has a way to set gtk themes

    • @JakeLinux
      @JakeLinux  Рік тому

      Thanks for the tip, I will check it out

  • @mohammadyounishama5611
    @mohammadyounishama5611 10 місяців тому +1

    Are you using systemd or you configure all the services/demons by yourself in that file

    • @JakeLinux
      @JakeLinux  10 місяців тому +1

      I just used the configuration.nix file

    • @mohammadyounishama5611
      @mohammadyounishama5611 10 місяців тому +1

      @@JakeLinux sorry what is the absolute path for this file

    • @JakeLinux
      @JakeLinux  10 місяців тому +1

      @@mohammadyounishama5611 /etc/nixos/configuration.nix

  • @slackmaster1970
    @slackmaster1970 Рік тому

    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

    • @JakeLinux
      @JakeLinux  Рік тому

      What repo are you looking to use?

  • @danielstellmon5330
    @danielstellmon5330 Рік тому +1

    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.

  • @gintokisakata7490
    @gintokisakata7490 Рік тому +1

    Come on you US guys, use °C already (or Kelvin). Nobody understands you regarding temperatures and nobody wants to.

  • @gurkengerd9981
    @gurkengerd9981 5 місяців тому +1

    Your indentations being all over the place makes me so uncomfortable 😩

    • @JakeLinux
      @JakeLinux  5 місяців тому

      I know, I am sloppy at times.

  • @TheLinuxCast
    @TheLinuxCast Рік тому +9

    Wayland and OBS is still garbage. It's why when people ask me to do Hyperland, I say no.

    • @JakeLinux
      @JakeLinux  Рік тому +2

      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.

    • @TheLinuxCast
      @TheLinuxCast Рік тому

      @@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.

    • @torsten.breswald
      @torsten.breswald Рік тому

      @@JakeLinux @TheLinuxCast maybe sxhkd might help, wouldn't that be global?

    • @TheLinuxCast
      @TheLinuxCast Рік тому +1

      @@torsten.breswald sxhkd is x only.

    • @lobotomizedjellyfish2171
      @lobotomizedjellyfish2171 Рік тому +2

      Calling them Garbage seems pretty harsh.

  • @trejohnson7677
    @trejohnson7677 11 місяців тому +1

    Lol fuck allat im using GNOME

    • @JakeLinux
      @JakeLinux  10 місяців тому

      I just can't bring myself to use gnome, I prefer cinnamon for full DE

  • @oldpain7625
    @oldpain7625 Рік тому +1

    NixOS: Nobody asked for it.

    • @JakeLinux
      @JakeLinux  Рік тому

      Nobody asked for what?

    • @oldpain7625
      @oldpain7625 Рік тому +1

      @@JakeLinux The OS itself.

    • @JakeLinux
      @JakeLinux  Рік тому

      @@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.

  • @damnhatesyou
    @damnhatesyou Рік тому +3

    96 degrees :/ americans and there terrible systems

    • @JakeLinux
      @JakeLinux  Рік тому +3

      Yeah, we're a bunch of weirdos.