diff options
author | Frankie B <git@diskfloppy.me> | 2023-08-09 14:49:06 +0100 |
---|---|---|
committer | Frankie B <git@diskfloppy.me> | 2023-08-09 14:49:06 +0100 |
commit | f240b64f25ff5418eb39151fa3de795b002848c4 (patch) | |
tree | ae23648a675febfc97ff538518a1d188cbf75cca /hosts/nixbox/configuration.nix | |
parent | c48a34747e46be6baa21eb0618c3b329ebfe5887 (diff) |
hyprland-ification
Diffstat (limited to 'hosts/nixbox/configuration.nix')
-rw-r--r-- | hosts/nixbox/configuration.nix | 48 |
1 files changed, 44 insertions, 4 deletions
diff --git a/hosts/nixbox/configuration.nix b/hosts/nixbox/configuration.nix index b7c7c78..d42492b 100644 --- a/hosts/nixbox/configuration.nix +++ b/hosts/nixbox/configuration.nix @@ -59,6 +59,13 @@ # Enable the KDE Plasma Desktop Environment. services.xserver.desktopManager.plasma5.enable = true; + # Enable hyprland + programs.hyprland = { + enable = true; + nvidiaPatches = true; + xwayland.enable = true; + }; + # Configure keymap in X11 services.xserver = { layout = "us"; @@ -77,16 +84,25 @@ alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; - # If you want to use JACK applications, uncomment this - #jack.enable = true; + jack.enable = true; # use the example session manager (no others are packaged yet so this is enabled by default, # no need to redefine it in your config for now) #media-session.enable = true; }; - services.xserver.videoDrivers = ["nvidia" "intel"]; - hardware.opengl.driSupport32Bit = true; + services.xserver.videoDrivers = ["nvidia"]; + hardware = { + opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + }; + nvidia = { + modesetting.enable = true; + nvidiaSettings = true; + }; + }; # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; @@ -131,12 +147,36 @@ screen pavucontrol paprefs + gcc # Fonts nerdfonts jetbrains-mono + + # other shit + dunst + libnotify + swww + rofi-wayland + networkmanagerapplet + grim + slurp + wl-clipboard + font-awesome + (waybar.overrideAttrs (oldAttrs: { + mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ]; + }) + ) ]; + environment.sessionVariables = { + WLR_NO_HARDWARE_CURSORS = "1"; + NIXOS_OZONE_WL = "1"; + }; + + xdg.portal.enable = true; + xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + programs.zsh.enable = true; # Some programs need SUID wrappers, can be configured further or are |