nix: trim down shell environment
This commit is contained in:
parent
f01c3666ea
commit
1e5145a0fa
26
flake.nix
26
flake.nix
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue