mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
flake: update devContainers attribute
This commit is contained in:
parent
f1699cc337
commit
2d97eb9638
@ -8,23 +8,17 @@
|
|||||||
|
|
||||||
perSystem = { config, lib, pkgs, ... }: {
|
perSystem = { config, lib, pkgs, ... }: {
|
||||||
apps = {
|
apps = {
|
||||||
run-workflow-with-vm =
|
run-workflow-with-vm = let
|
||||||
let
|
inputsArgs = lib.mapAttrsToList (name: source:
|
||||||
inputsArgs = lib.mapAttrsToList
|
let name' = if (name == "self") then "config" else name;
|
||||||
(name: source:
|
in "'${name'}=${source}'") inputs;
|
||||||
let
|
script = pkgs.callPackage ../../apps/run-workflow-with-vm {
|
||||||
name' = if (name == "self") then "config" else name;
|
inputs = inputsArgs;
|
||||||
in
|
|
||||||
"'${name'}=${source}'")
|
|
||||||
inputs;
|
|
||||||
script = pkgs.callPackage ../../apps/run-workflow-with-vm {
|
|
||||||
inputs = inputsArgs;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
type = "app";
|
|
||||||
program = "${script}/bin/run-workflow-with-vm";
|
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
type = "app";
|
||||||
|
program = "${script}/bin/run-workflow-with-vm";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# No amount of formatters will make this codebase nicer but it sure does
|
# No amount of formatters will make this codebase nicer but it sure does
|
||||||
@ -37,22 +31,21 @@
|
|||||||
devShells = import ../../shells { inherit pkgs; } // {
|
devShells = import ../../shells { inherit pkgs; } // {
|
||||||
default = import ../../shell.nix {
|
default = import ../../shell.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs;
|
||||||
# Mozilla addons-specific tooling. Unfortunately, only available with
|
[
|
||||||
# flakes-based setups.
|
# Mozilla addons-specific tooling. Unfortunately, only available with
|
||||||
nur.repos.rycee.mozilla-addons-to-nix
|
# flakes-based setups.
|
||||||
];
|
nur.repos.rycee.mozilla-addons-to-nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
website = import ../../docs/website/shell.nix { inherit pkgs; };
|
website = import ../../docs/website/shell.nix { inherit pkgs; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Packages that are meant to be consumed inside of a development
|
# Packages that are meant to be consumed inside of a development
|
||||||
# environment.
|
# environment.
|
||||||
devPackages = {
|
devPackages = { inherit (import ../../docs { inherit pkgs; }) website; };
|
||||||
inherit (import ../../docs { inherit pkgs; }) website;
|
|
||||||
};
|
|
||||||
|
|
||||||
# All of the typical devcontainers to be used.
|
# All of the typical devcontainers to be used.
|
||||||
devcontainers = import ../../devcontainers { inherit pkgs; };
|
devContainers = import ../../devcontainers { inherit pkgs; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user