dotfiles/modules/nixos/hardware/server.nix
2023-02-20 20:37:37 -05:00

12 lines
247 B
Nix

{ config, pkgs, lib, ... }: {
config = lib.mkIf (pkgs.stdenv.isLinux && config.server) {
# Servers need a bootloader or they won't start
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
};
}