nix: trim down shell environment
This commit is contained in:
parent
f01c3666ea
commit
1e5145a0fa
30
flake.nix
30
flake.nix
|
@ -228,31 +228,23 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
shellHook =
|
shellHook = ''
|
||||||
let
|
${config.pre-commit.installationScript}
|
||||||
systemdUkify = pkgs.systemdMinimal.override {
|
'';
|
||||||
withEfi = true;
|
|
||||||
withBootloader = true;
|
|
||||||
withUkify = true;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
''
|
|
||||||
${config.pre-commit.installationScript}
|
|
||||||
export PATH=$PATH:${systemdUkify}/lib/systemd
|
|
||||||
'';
|
|
||||||
|
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.uefi-run
|
|
||||||
pkgs.openssl
|
|
||||||
(pkgs.sbctl.override { databasePath = "pki"; })
|
|
||||||
pkgs.sbsigntool
|
|
||||||
pkgs.efitools
|
|
||||||
pkgs.python39Packages.ovmfvartool
|
|
||||||
pkgs.qemu
|
|
||||||
pkgs.nixpkgs-fmt
|
pkgs.nixpkgs-fmt
|
||||||
pkgs.statix
|
pkgs.statix
|
||||||
pkgs.cargo-release
|
pkgs.cargo-release
|
||||||
pkgs.cargo-machete
|
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 = [
|
inputsFrom = [
|
||||||
|
|
Loading…
Reference in New Issue