From 9b617fd1beff8efcc1f4705ba861ce5f35c3e2d0 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 10 Jul 2024 10:04:32 -0400 Subject: [PATCH] add pp-adjuster --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ hosts/petalburg/home.nix | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index ff771f54..d3f31d78 100644 --- a/flake.lock +++ b/flake.lock @@ -583,6 +583,26 @@ "type": "github" } }, + "pp-adjuster": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1720620069, + "narHash": "sha256-fWHo+6xjXaTmkX9Gn/vIXSEWZAQqi46adrKyvT3CLps=", + "owner": "alyraffauf", + "repo": "pp-adjuster", + "rev": "bae61cf8f5964acb943997d9fb24b1217be534b2", + "type": "github" + }, + "original": { + "owner": "alyraffauf", + "repo": "pp-adjuster", + "type": "github" + } + }, "raffauflabs": { "inputs": { "nixpkgs": [ @@ -615,6 +635,7 @@ "nixpkgs-unstable": "nixpkgs-unstable", "nixvim": "nixvim", "nur": "nur", + "pp-adjuster": "pp-adjuster", "raffauflabs": "raffauflabs" } }, diff --git a/flake.nix b/flake.nix index 04ab41fa..179e8eb2 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,11 @@ nur.url = "github:nix-community/NUR"; + pp-adjuster = { + inputs.nixpkgs.follows = "nixpkgs"; + url = "github:alyraffauf/pp-adjuster"; + }; + raffauflabs = { inputs.nixpkgs.follows = "nixpkgs"; url = "github:alyraffauf/raffauflabs"; diff --git a/hosts/petalburg/home.nix b/hosts/petalburg/home.nix index 2cd8e79c..264d3260 100644 --- a/hosts/petalburg/home.nix +++ b/hosts/petalburg/home.nix @@ -10,7 +10,7 @@ { wayland.windowManager.hyprland.extraConfig = '' # Extra bindings for petalburg. - bind = , xf86launch4, exec, ${lib.getExe self.inputs.nixhw.packages.${pkgs.system}.power-profile-adjuster} + bind = , xf86launch4, exec, ${lib.getExe self.inputs.pp-adjuster.packages.${pkgs.system}.default} bind = , xf86launch2, exec, ${lib.getExe pkgs.playerctl} play-pause exec-once = ${lib.getExe self.inputs.iio-hyprland.packages.${pkgs.system}.default} "desc:Samsung Display Corp. 0x4152"