nixos-config/modules/users/applications/default.nix

36 lines
693 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.erwin.applications;
in
{
options.erwin.applications = {
enable = mkOption {
description = "Enable a set of common applications";
type = types.bool;
default = false;
};
};
config = mkIf (cfg.enable) {
home.sessionVariables = {
EDITOR = "vim";
};
home.packages = with pkgs; [
neovim
(nerdfonts.override { fonts = [ "CascadiaCode" "FantasqueSansMono" "FiraCode" "JetBrainsMono" "Meslo" "Noto" "SourceCodePro" ]; })
];
fonts.fontconfig.enable = true;
xdg = {
enable = true;
};
programs = {
alacritty = import ./alacritty.nix;
};
};
}