nix-dotfiles/hosts/modules/boot.nix
2025-07-28 12:53:19 -06:00

30 lines
606 B
Nix

{pkgs, ...}: {
boot = {
loader = {
systemd-boot = {
enable = true;
configurationLimit = 5;
};
efi.canTouchEfiVariables = true;
timeout = 5;
};
tmp = {
cleanOnBoot = true;
};
kernelPackages = pkgs.linuxPackages_zen;
};
system.activationScripts.binbash = {
deps = [];
text = ''
mkdir -p /bin
if [ ! -e /bin/bash ]; then
ln -sf ${pkgs.bash}/bin/bash /bin/bash
fi
mkdir -p /usr/bin
if [ ! -e /usr/bin/env ]; then
ln -sf ${pkgs.coreutils}/bin/env /usr/bin/env
fi
'';
};
}