nix: trim down shell environment

This commit is contained in:
Julian Stecklina 2023-10-29 19:39:28 +01:00
parent f01c3666ea
commit 1e5145a0fa
1 changed files with 11 additions and 19 deletions

View File

@ -228,31 +228,23 @@
};
devShells.default = pkgs.mkShell {
shellHook =
let
systemdUkify = pkgs.systemdMinimal.override {
withEfi = true;
withBootloader = true;
withUkify = true;
};
in
''
shellHook = ''
${config.pre-commit.installationScript}
export PATH=$PATH:${systemdUkify}/lib/systemd
'';
packages = [
pkgs.uefi-run
pkgs.openssl
(pkgs.sbctl.override { databasePath = "pki"; })
pkgs.sbsigntool
pkgs.efitools
pkgs.python39Packages.ovmfvartool
pkgs.qemu
pkgs.nixpkgs-fmt
pkgs.statix
pkgs.cargo-release
pkgs.cargo-machete
# Convenience for test fixtures in nix/tests.
pkgs.openssl
(pkgs.sbctl.override { databasePath = "pki"; })
# Needed for `cargo test` in rust/tool. We also need
# TEST_SYSTEMD below for that.
pkgs.sbsigntool
];
inputsFrom = [