2021-10-05 23:45:02 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.erwin.applications;
|
2021-10-18 21:45:28 +02:00
|
|
|
in
|
|
|
|
{
|
2021-10-05 23:45:02 +02:00
|
|
|
options.erwin.applications = {
|
2021-11-03 23:05:12 +01:00
|
|
|
enable = mkEnableOption {
|
2021-10-05 23:45:02 +02:00
|
|
|
description = "Enable a set of common applications";
|
2021-11-03 23:05:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
2021-10-18 21:45:28 +02:00
|
|
|
(nerdfonts.override { fonts = [ "CascadiaCode" "FantasqueSansMono" "FiraCode" "JetBrainsMono" "Meslo" "Noto" "SourceCodePro" ]; })
|
2021-10-05 23:45:02 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
fonts.fontconfig.enable = true;
|
2021-10-18 21:45:28 +02:00
|
|
|
|
|
|
|
xdg = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
alacritty = import ./alacritty.nix;
|
2021-11-03 23:05:12 +01:00
|
|
|
firefox = import ./firefox.nix { work = cfg.work; };
|
2021-10-18 21:45:28 +02:00
|
|
|
};
|
2021-10-05 23:45:02 +02:00
|
|
|
};
|
|
|
|
}
|