Add probe-rs udev rules
This commit is contained in:
parent
6827de74d5
commit
20ac269ade
3 changed files with 44 additions and 1 deletions
|
@ -30,7 +30,7 @@ in {
|
|||
|
||||
shellAliases = {
|
||||
# code = "${pkgs.vscode}/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland";
|
||||
ls = "${pkgs.exa}/bin/exa -Fb";
|
||||
ls = "${pkgs.exa}/bin/exa -Fb --git";
|
||||
|
||||
vimdiff = mkIf (config.eboskma.programs.neovim.enable) "nvim -d";
|
||||
vim = mkIf (config.eboskma.programs.neovim.enable) "nvim";
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
with lib; let
|
||||
cfg = config.eboskma.base;
|
||||
qmkUdevRules = builtins.readFile ./qmk.rules;
|
||||
probersRules = pkgs.callPackage ./probe-rs {
|
||||
inherit (pkgs.stdenv) mkDerivation;
|
||||
inherit lib;
|
||||
};
|
||||
in {
|
||||
options.eboskma.base = {
|
||||
kernel = mkOption {
|
||||
|
@ -60,6 +64,9 @@ in {
|
|||
|
||||
services.udev = {
|
||||
extraRules = qmkUdevRules;
|
||||
packages = [
|
||||
probersRules
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
36
modules/base/probe-rs/default.nix
Normal file
36
modules/base/probe-rs/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
mkDerivation,
|
||||
lib,
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "probe-rs-udev-rules";
|
||||
version = "20220312131009";
|
||||
|
||||
src = builtins.fetchurl {
|
||||
url = "https://probe.rs/files/69-probe-rs.rules";
|
||||
sha256 = "00p6jywj43szcmjg13qh3kqhd98swnv7p9kwrcs1n5xr8hkx7lnm";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/udev/rules.d
|
||||
cp $src $out/lib/udev/rules.d/69-probe-rs.rules
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "udev rules for probe.rs";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = [
|
||||
{
|
||||
email = "erwin@datarift.nl";
|
||||
github = "eboskma";
|
||||
name = "Erwin Boskma";
|
||||
}
|
||||
];
|
||||
platforms = platforms.linux;
|
||||
homepage = "https://probe.rs";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue