From d27d4d28fc1b0ff243131b31de1607dfce647367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sat, 1 Jun 2024 17:19:39 +0200 Subject: [PATCH] Sat Jun 1 05:19:39 PM CEST 2024 --- NixOS/configuration.nix | 21 ++++++++++++++++++++- NixOS/modules/hyprland/config.nix | 18 +++++++++--------- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/NixOS/configuration.nix b/NixOS/configuration.nix index 8a929c7..4757c05 100644 --- a/NixOS/configuration.nix +++ b/NixOS/configuration.nix @@ -18,9 +18,28 @@ # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. + nix.settings = { + substituters = [ "https://hyprland.cachix.org" ]; + trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ]; + }; + # System Packages programs.zsh.enable = true; - programs.hyprland.enable = true; + programs.hyprland = { + enable = true; + package = inputs.hyprland.packages.${pkgs.system}.hyprland; + }; + + services.greetd = { + enable = true; + settings = rec { + initial_session = { + command = "Hyprland"; + user = "user"; + }; + default_session = initial_session; + }; + }; # Pipewire security.rtkit.enable = true; diff --git a/NixOS/modules/hyprland/config.nix b/NixOS/modules/hyprland/config.nix index 9a1bd13..38ede0b 100644 --- a/NixOS/modules/hyprland/config.nix +++ b/NixOS/modules/hyprland/config.nix @@ -62,16 +62,16 @@ in services.hyprpaper = { enable = true; settings = { - ipc = "off"; - splash = false; - preload = - [ "${./files/wallpaper.png}"]; + ipc = "on"; + splash = false; + preload = + [ "${./files/wallpaper.png}" ]; - wallpaper = [ - "DP-3,${./files/wallpaper.png}" - "DP-2,${./files/wallpaper.png}" - "HDMI-A-1,${./files/wallpaper.png}" - ]; + wallpaper = [ + "DP-3,${./files/wallpaper.png}" + "DP-2,${./files/wallpaper.png}" + "HDMI-A-1,${./files/wallpaper.png}" + ]; }; }; wayland.windowManager.hyprland = {