diff --git a/nixops/light.nix b/nixops/light.nix index 55a9f540..73f55630 100644 --- a/nixops/light.nix +++ b/nixops/light.nix @@ -1,6 +1,9 @@ { host }: { config, pkgs, ... }: +let + m-labs = import (fetchTarball https://nixbld.m-labs.hk/channel/custom/artiq/full/artiq-full/nixexprs.tar.xz) { inherit pkgs; }; +in { deployment.targetHost = host; nix.nixPath = [ "nixpkgs=${pkgs.path}" ]; @@ -112,6 +115,8 @@ users.extraUsers = import ./common-users.nix { inherit pkgs; }; security.sudo.wheelNeedsPassword = false; + services.udev.packages = [ m-labs.openocd ]; + services.udev.extraRules = (import ./extra-udev.nix); nix.binaryCachePublicKeys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="]; nix.binaryCaches = ["https://nixbld.m-labs.hk" "https://cache.nixos.org"];