diff --git a/flake.nix b/flake.nix index fdcdb07..5fa26d0 100644 --- a/flake.nix +++ b/flake.nix @@ -51,7 +51,7 @@ exec ${hypr}/bin/Hyprland --config ${configFile} ''; - startHyprlandScript = pkgs.writeShellScript "start-hyprland" '' + startScript = pkgs.writeShellScript "start-hyprland" '' export PATH=${runtimePath}:$PATH export XDG_CONFIG_HOME=${configDir} @@ -60,6 +60,42 @@ ''; in { + + homeManagerModules.default = + { pkgs, ... }: + { + + home.packages = with pkgs; [ + wofi + grim + swaynotificationcenter + swaylock + hyprpaper + lxsession + hyprshot + wayvnc + pamixer + pavucontrol + brightnessctl + python313Packages.requests + networkmanagerapplet + ]; + + wayland.windowManager.hyprland = { + enable = true; + xwayland.enable = true; + configType = "hyprlang"; + extraConfig = ""; + }; + + programs.waybar.enable = true; + + xdg.configFile."hypr" = { + source = configDir; + recursive = true; + }; + }; + apps.${system} = { default = { type = "app"; @@ -73,19 +109,10 @@ start-hyprland = { type = "app"; - program = "${startHyprlandScript}"; + program = "${startScript}"; }; }; - homeManagerModules.default = { - xdg.configFile."hypr" = { - source = self; - recursive = true; - }; - }; - - configDir = self; - packages.${system}.default = pkgs.runCommand "hyprland-config-check" { } '' ${verifyScript} touch $out