diff --git a/flake.nix b/flake.nix index 45545b2..61c69cd 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,20 @@ waybar networkmanagerapplet blueman + + # aus deiner Home-Manager-Konfiguration + wofi + grim + swaynotificationcenter + swaylock + hyprpaper + lxsession + hyprshot + wayvnc + pamixer + pavucontrol + brightnessctl + python313Packages.requests ]; runtimePath = pkgs.lib.makeBinPath runtimePackages; @@ -36,6 +50,14 @@ export PATH=${runtimePath}:$PATH exec ${hypr}/bin/Hyprland --config ${configFile} ''; + + startHyprlandScript = pkgs.writeShellScript "start-hyprland" '' + export PATH=${runtimePath}:$PATH + + export XDG_CONFIG_HOME=${configDir} + + exec ${hypr}/bin/start-hyprland --config ${configFile} + ''; in { apps.${system} = { @@ -48,6 +70,11 @@ type = "app"; program = "${runScript}"; }; + + start-hyprland = { + type = "app"; + program = "${startHyprlandScript}"; + }; }; packages.${system}.default = pkgs.runCommand "hyprland-config-check" { } ''