{ config, lib, pkgs, this, ... }: with lib; let cfg = config.nixfiles.modules.profiles.headless; in { options.nixfiles.modules.profiles.headless.enable = mkEnableOption "headless profile" // { default = this.isHeadless; }; config = mkIf cfg.enable { hm.home.file = { ".hushlogin".text = ""; ".bash_history".source = config.hm.lib.file.mkOutOfStoreSymlink "/dev/null"; }; environment.systemPackages = with pkgs; [ alacritty.terminfo ]; }; }