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

42 lines
834 B
Nix
Raw Normal View History

2021-10-05 23:45:02 +02:00
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.erwin.applications;
in
{
2021-10-05 23:45:02 +02:00
options.erwin.applications = {
enable = mkEnableOption {
2021-10-05 23:45:02 +02:00
description = "Enable a set of common applications";
};
work = mkOption {
description = "Is this a work config?";
2021-10-05 23:45:02 +02:00
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" ]; })
2021-10-05 23:45:02 +02:00
];
fonts.fontconfig.enable = true;
xdg = {
enable = true;
};
programs = {
alacritty = import ./alacritty.nix;
firefox = import ./firefox.nix { work = cfg.work; };
};
2021-10-05 23:45:02 +02:00
};
}