overlays: provide updated chrysalis package
This commit is contained in:
parent
e670b6ed4f
commit
e84a51b3b8
|
@ -98,7 +98,7 @@
|
||||||
"rfkill-release"
|
"rfkill-release"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.udev.packages = [pkgs.packages.kaleidoscope-udev-rules];
|
services.udev.packages = [pkgs.chrysalis];
|
||||||
|
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
|
|
||||||
environment.systemPackages = [pkgs.arandr pkgs.chrysalis];
|
environment.systemPackages = [pkgs.arandr pkgs.chrysalis];
|
||||||
|
|
||||||
services.udev.packages = [pkgs.packages.kaleidoscope-udev-rules];
|
services.udev.packages = [pkgs.chrysalis];
|
||||||
|
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
37
overlays/chrysalis/default.nix
Normal file
37
overlays/chrysalis/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
final: prev: {
|
||||||
|
chrysalis = let
|
||||||
|
pname = "chrysalis";
|
||||||
|
version = "0.11.3";
|
||||||
|
name = "${pname}-${version}-binary";
|
||||||
|
in
|
||||||
|
prev.appimageTools.wrapAppImage rec {
|
||||||
|
inherit name;
|
||||||
|
|
||||||
|
src = prev.appimageTools.extract {
|
||||||
|
inherit name;
|
||||||
|
src = prev.fetchurl {
|
||||||
|
url = "https://github.com/keyboardio/${pname}/releases/download/v${version}/${pname}-${version}.AppImage";
|
||||||
|
sha256 = "sha256-N0M1lZvPKAT+UXZgn68DaDupzXJupcOE06gFxKP6W0o=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
multiPkgs = null;
|
||||||
|
extraPkgs = p:
|
||||||
|
(prev.appimageTools.defaultFhsEnvArgs.multiPkgs p)
|
||||||
|
++ [
|
||||||
|
p.glib
|
||||||
|
];
|
||||||
|
|
||||||
|
# Also expose the udev rules here, so it can be used as:
|
||||||
|
# services.udev.packages = [ pkgs.chrysalis ];
|
||||||
|
# to allow non-root modifications to the keyboards.
|
||||||
|
|
||||||
|
extraInstallCommands = ''
|
||||||
|
mv $out/bin/${name} $out/bin/${pname}
|
||||||
|
mkdir -p $out/lib/udev/rules.d
|
||||||
|
ln -s \
|
||||||
|
--target-directory=$out/lib/udev/rules.d \
|
||||||
|
${src}/resources/static/udev/60-kaleidoscope.rules
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
i3status-rust = import ./i3status-rust;
|
i3status-rust = import ./i3status-rust;
|
||||||
|
chrysalis = import ./chrysalis;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue