flake: update devContainers attribute

This commit is contained in:
Gabriel Arazas 2024-10-28 09:56:08 +08:00
parent f1699cc337
commit 2d97eb9638
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -8,20 +8,14 @@
perSystem = { config, lib, pkgs, ... }: {
apps = {
run-workflow-with-vm =
let
inputsArgs = lib.mapAttrsToList
(name: source:
let
name' = if (name == "self") then "config" else name;
in
"'${name'}=${source}'")
inputs;
run-workflow-with-vm = let
inputsArgs = lib.mapAttrsToList (name: source:
let name' = if (name == "self") then "config" else name;
in "'${name'}=${source}'") inputs;
script = pkgs.callPackage ../../apps/run-workflow-with-vm {
inputs = inputsArgs;
};
in
{
in {
type = "app";
program = "${script}/bin/run-workflow-with-vm";
};
@ -37,7 +31,8 @@
devShells = import ../../shells { inherit pkgs; } // {
default = import ../../shell.nix {
inherit pkgs;
extraPackages = with pkgs; [
extraPackages = with pkgs;
[
# Mozilla addons-specific tooling. Unfortunately, only available with
# flakes-based setups.
nur.repos.rycee.mozilla-addons-to-nix
@ -48,11 +43,9 @@
# Packages that are meant to be consumed inside of a development
# environment.
devPackages = {
inherit (import ../../docs { inherit pkgs; }) website;
};
devPackages = { inherit (import ../../docs { inherit pkgs; }) website; };
# All of the typical devcontainers to be used.
devcontainers = import ../../devcontainers { inherit pkgs; };
devContainers = import ../../devcontainers { inherit pkgs; };
};
}