From 713e3cb635c99c60f153aa59386bebeff9559939 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 23 Mar 2021 16:28:01 +0800 Subject: [PATCH] nixops: udev rules on light.nix --- nixops/light.nix | 5 +++++ 1 file changed, 5 insertions(+) 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"];