dotfiles/modules/nixos/hardware/server.nix

12 lines
247 B
Nix
Raw Normal View History

2022-12-21 21:18:03 +00:00
{ config, pkgs, lib, ... }: {
2022-10-01 16:24:44 +00:00
2022-12-21 21:18:03 +00:00
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;
};
2022-10-01 16:24:44 +00:00
}