From 1e4d4a466d07d86e997e4ffffe4907b473013dfe Mon Sep 17 00:00:00 2001 From: smayzy Date: Fri, 20 Jun 2025 12:54:58 +0200 Subject: [PATCH] add hyprland (no fully configured yet but working) --- configuration.nix | 19 +++++++++++++++++-- dotfiles/hypr-desk/source/autostart.conf | 8 ++++---- home.nix | 5 +++++ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index b6a1107..ea1c531 100644 --- a/configuration.nix +++ b/configuration.nix @@ -48,8 +48,6 @@ packages = with pkgs; []; }; - services.xserver.enable = true; - services.xserver.xkb = { layout = "fr"; variant = ""; @@ -60,6 +58,19 @@ services.displayManager.sddm.enable = true; services.displayManager.sddm.wayland.enable = true; + programs.hyprland = { + enable = true; + xwayland.enable = true; + }; + + xdg.portal.enable = true; + xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + + hardware = { + graphics.enable = true; + nvidia.modesetting.enable = true; + }; + environment.systemPackages = with pkgs; [ home-manager wget @@ -72,6 +83,10 @@ wofi qutebrowser wlogout + waybar + wl-clipboard + libnotify + hyprpaper ]; programs.firefox.enable = true; diff --git a/dotfiles/hypr-desk/source/autostart.conf b/dotfiles/hypr-desk/source/autostart.conf index 2d4c3e0..f54f824 100644 --- a/dotfiles/hypr-desk/source/autostart.conf +++ b/dotfiles/hypr-desk/source/autostart.conf @@ -1,11 +1,11 @@ # Autostarts here -#exec-once = waybar -#exec = hyprpaper -#exec = killall waybar && waybar +exec-once = waybar +exec = hyprpaper +exec = killall waybar && waybar #exec-once = wl-paste --type text --watch cliphist store #exec-once = wl-paste --type image --watch cliphist store #exec-once = systemctl --user start hyprpolkitagent -#exec-once = mako +exec-once = mako # APPs #exec-once = [workspace 11 silent] webcord #exec-once = [workspace 10 silent] thunderbird diff --git a/home.nix b/home.nix index 4d0ccf9..6e10c1c 100644 --- a/home.nix +++ b/home.nix @@ -47,6 +47,11 @@ recursive = true; force = true; }; + "wallpaper" = { + source = builtins.toPath ./wallpapers; + recursive = true; + force = true; + }; }; home.sessionVariables = {