diff options
Diffstat (limited to 'modules/home-manager/i3/i3-commands.nix')
| -rw-r--r-- | modules/home-manager/i3/i3-commands.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/home-manager/i3/i3-commands.nix b/modules/home-manager/i3/i3-commands.nix new file mode 100644 index 0000000..d3df9a4 --- /dev/null +++ b/modules/home-manager/i3/i3-commands.nix @@ -0,0 +1,28 @@ +{ + perSystem = + { pkgs, ... }: + { + packages.i3-commands = pkgs.callPackage ( + { + stdenv, + lib + }: + stdenv.mkDerivation { + pname = "i3-commands"; + version = "0.0.1"; + + srcs = lib.cleanSourceWith { + src = ./scripts; + filter = path: type: baseNameOf path != "rofi-passmenu"; + }; + + installPhase = '' + runHook preInstall + mkdir -p $out/bin + install -D -m 755 ./* $out/bin + runHook postInstall + ''; + } + ) { }; + }; +} |
