From 70b4e9426287c1ad2efb4747da023cf6e611f502 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Wed, 9 Aug 2023 15:05:31 +0100 Subject: [PATCH] hyprland but nixpad --- hosts/nixpad/configuration.nix | 37 +++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/hosts/nixpad/configuration.nix b/hosts/nixpad/configuration.nix index 7f7d58c..93f4e46 100644 --- a/hosts/nixpad/configuration.nix +++ b/hosts/nixpad/configuration.nix @@ -1,7 +1,6 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). - { config, pkgs, @@ -52,6 +51,11 @@ services.xserver.displayManager.sddm.enable = true; services.xserver.desktopManager.plasma5.enable = true; + programs.hyprland = { + enable = true; + xwayland.enable = true; + }; + # Configure keymap in X11 services.xserver = { layout = "us"; @@ -73,8 +77,7 @@ 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) @@ -82,8 +85,11 @@ }; services.xserver.videoDrivers = ["intel"]; - hardware.opengl.driSupport32Bit = true; - + hardware.opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + }; # Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable = true; @@ -92,7 +98,7 @@ users.users.floppydisk = { isNormalUser = true; description = "Frankie B."; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = ["networkmanager" "wheel"]; packages = with pkgs; [ kate ]; @@ -118,8 +124,26 @@ # Fonts nerdfonts jetbrains-mono + + #other crap + rofi + wl-clipboard + dunst + ( + pkgs.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 @@ -148,5 +172,4 @@ # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "22.11"; # Did you read the comment? - }