2020-11-17 01:51:13 +00:00
|
|
|
{ config, pkgs, ... }:
|
2020-12-18 04:15:10 +00:00
|
|
|
let
|
|
|
|
call =
|
|
|
|
if (pkgs.targetPlatform.system == "x86_64-linux") then pkgs.pkgsi686Linux.callPackage
|
|
|
|
else pkgs.callPackage;
|
|
|
|
jlink = call ../externals/packages/jlink { };
|
|
|
|
in
|
2020-11-22 21:26:28 +00:00
|
|
|
{
|
|
|
|
services.udev.packages = [
|
|
|
|
(pkgs.callPackage ../externals/rules/adafruit.nix { })
|
|
|
|
(pkgs.callPackage ../externals/rules/limesuite.nix { })
|
|
|
|
pkgs.openocd
|
|
|
|
];
|
2020-11-17 01:51:13 +00:00
|
|
|
|
2020-11-22 21:26:28 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
kicad-unstable
|
|
|
|
openocd
|
2020-12-04 23:35:51 +00:00
|
|
|
picocom
|
2020-11-22 21:26:28 +00:00
|
|
|
stlink
|
2020-12-18 04:15:10 +00:00
|
|
|
jlink
|
2020-11-22 21:26:28 +00:00
|
|
|
];
|
2020-11-17 01:51:13 +00:00
|
|
|
|
2020-11-22 21:26:28 +00:00
|
|
|
users = {
|
|
|
|
users.artemis.extraGroups = [ "plugdev" "dialout" ];
|
2020-11-26 04:20:52 +00:00
|
|
|
extraGroups.plugdev = { };
|
2020-11-22 21:26:28 +00:00
|
|
|
};
|
|
|
|
}
|