From cbf2ed3b104c5ca45b409016599f85d76f9d5f11 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 26 Dec 2024 15:34:45 +0100 Subject: [PATCH] home-manager/programs/hyprland: add xdg-autostart programs --- .../programs/hypr/land/autostart.nix | 13 +++++++++++++ .../programs/hypr/land/default.nix | 2 +- flake.lock | 18 +++++++++++++++++- flake.nix | 2 ++ 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 config/home-manager/programs/hypr/land/autostart.nix diff --git a/config/home-manager/programs/hypr/land/autostart.nix b/config/home-manager/programs/hypr/land/autostart.nix new file mode 100644 index 0000000..a45ee80 --- /dev/null +++ b/config/home-manager/programs/hypr/land/autostart.nix @@ -0,0 +1,13 @@ +{ + inputs, + pkgs, + ... +}: { + imports = [ + inputs.xdg-autostart.homeManagerModules.xdg-autostart + ]; + + xdg.autoStart.packages = with pkgs; [ + equibop + ]; +} diff --git a/config/home-manager/programs/hypr/land/default.nix b/config/home-manager/programs/hypr/land/default.nix index 3bf39c7..a0c0e17 100644 --- a/config/home-manager/programs/hypr/land/default.nix +++ b/config/home-manager/programs/hypr/land/default.nix @@ -3,7 +3,7 @@ pkgs, ... }: { - imports = [./binds.nix]; + imports = [./autostart.nix ./binds.nix]; home.packages = [ inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast # disable unused panels - https://github.com/maydayv7/dotfiles/blob/4de45008a6915753834aa7e1cbafbacfff8b7adc/modules/gui/desktop/hyprland/apps/utilities.nix#L42-L57 diff --git a/flake.lock b/flake.lock index c2f78a1..f7606f5 100644 --- a/flake.lock +++ b/flake.lock @@ -3234,7 +3234,8 @@ "nvf": "nvf", "plasma-manager": "plasma-manager", "portfolio": "portfolio", - "treefmt-nix": "treefmt-nix" + "treefmt-nix": "treefmt-nix", + "xdg-autostart": "xdg-autostart" } }, "rust-overlay": { @@ -3441,6 +3442,21 @@ "type": "github" } }, + "xdg-autostart": { + "locked": { + "lastModified": 1735223330, + "narHash": "sha256-IeJ60TI+75keBwxQ5kN/W6KfFYsVXTWEYUSpqUZMTXE=", + "owner": "nezia1", + "repo": "home-manager-xdg-autostart", + "rev": "8f9c965af14ef728137b961a916a68773b0d843d", + "type": "github" + }, + "original": { + "owner": "nezia1", + "repo": "home-manager-xdg-autostart", + "type": "github" + } + }, "xdph": { "inputs": { "hyprland-protocols": [ diff --git a/flake.nix b/flake.nix index 01c9b3d..d29d3fc 100644 --- a/flake.nix +++ b/flake.nix @@ -71,6 +71,8 @@ inputs.home-manager.follows = "home-manager"; }; treefmt-nix.url = "github:numtide/treefmt-nix"; + # TODO: switch to Zocker1999NET if PR gets merged + xdg-autostart.url = "github:nezia1/home-manager-xdg-autostart"; }; nixConfig = { extra-substituters = [