diff --git a/flake.nix b/flake.nix index 319a89e..dd3a0e3 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,7 @@ self, nixpkgs, spicetify-nix, + sxhkd-flake, ... } @ inputs: let settings = { @@ -59,7 +60,7 @@ inherit system pkgs; specialArgs = {inherit inputs settings;}; modules = [ - (import ./modules/sxhkd.nix inputs) + sxhkd-flake.nixosModules.sxhkd ./configuration.nix ./systems/desktop.nix { diff --git a/modules/sxhkd.nix b/modules/sxhkd.nix index eb92c91..bb64469 100644 --- a/modules/sxhkd.nix +++ b/modules/sxhkd.nix @@ -1,11 +1,4 @@ -{sxhkd-flake, ...}: { - config, - lib, - options, - pkgs, - ... -}: (sxhkd-flake.nixosModules.sxhkd { - inherit lib config options pkgs; +{ services.sxhkd = { enable = true; keybindings = { @@ -27,4 +20,4 @@ "super + Print + shift" = "maim -s | xclip -selection clipboard -t image/png"; }; }; -}) +} diff --git a/systems/desktop.nix b/systems/desktop.nix index a9da188..86ceba0 100644 --- a/systems/desktop.nix +++ b/systems/desktop.nix @@ -15,6 +15,7 @@ "picom" "refreshrate" "scripts" + "sxhkd" "vfio" "xserver" "zsh" diff --git a/systems/laptop.nix b/systems/laptop.nix index cc63138..49b7c21 100644 --- a/systems/laptop.nix +++ b/systems/laptop.nix @@ -13,6 +13,7 @@ "picom" "prime" "scripts" + "sxhkd" "xserver" "zsh" ];