nixos-config/sets/hardware.nix

28 lines
598 B
Nix
Raw Normal View History

2020-11-17 01:51:13 +00:00
{ config, pkgs, ... }:
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
picocom
2020-11-22 21:26:28 +00:00
stlink
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
};
}