From 4430c88d438decb4df02ef893ed5801392c553d8 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 26 Dec 2024 18:02:11 +0100 Subject: [PATCH] home-manager/programs/hypr: use flake --- config/home-manager/programs/hypr/idle.nix | 8 +++++++- config/home-manager/programs/hypr/lock.nix | 7 ++++++- flake.nix | 24 ++++++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/config/home-manager/programs/hypr/idle.nix b/config/home-manager/programs/hypr/idle.nix index c3f72ac..a71e70f 100644 --- a/config/home-manager/programs/hypr/idle.nix +++ b/config/home-manager/programs/hypr/idle.nix @@ -1,7 +1,13 @@ -_: { +{ + inputs, + pkgs, + ... +}: { services.hypridle = { enable = true; + package = inputs.hypridle.packages.${pkgs.system}.hypridle; + settings = { general = { lock_cmd = "pidof hyprlock || hyprlock"; diff --git a/config/home-manager/programs/hypr/lock.nix b/config/home-manager/programs/hypr/lock.nix index d2ace82..b839ba4 100644 --- a/config/home-manager/programs/hypr/lock.nix +++ b/config/home-manager/programs/hypr/lock.nix @@ -1,5 +1,10 @@ -_: { +{ + inputs, + pkgs, + ... +}: { programs.hyprlock = { enable = true; + package = inputs.hyprlock.packages.${pkgs.system}.hyprlock; }; } diff --git a/flake.nix b/flake.nix index d29d3fc..3b38811 100644 --- a/flake.nix +++ b/flake.nix @@ -56,11 +56,35 @@ url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; inputs.nixpkgs.follows = "nixpkgs"; }; + hyprland.url = "github:hyprwm/Hyprland"; + hyprland-qtutils = { + url = "github:hyprwm/hyprland-qtutils"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + hypridle = { + url = "github:hyprwm/hypridle"; + inputs = { + hyprlang.follows = "hyprland/hyprlang"; + hyprutils.follows = "hyprland/hyprutils"; + nixpkgs.follows = "hyprland/nixpkgs"; + systems.follows = "hyprland/systems"; + }; + }; + hyprlock = { + url = "github:hyprwm/hyprlock"; + inputs = { + hyprlang.follows = "hyprland/hyprlang"; + hyprutils.follows = "hyprland/hyprutils"; + nixpkgs.follows = "hyprland/nixpkgs"; + systems.follows = "hyprland/systems"; + }; + }; hyprwm-contrib = { url = "github:hyprwm/contrib"; inputs.nixpkgs.follows = "nixpkgs"; }; + niri.url = "github:sodiboo/niri-flake"; nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.5.0"; nvf.url = "github:notashelf/nvf";