nixos-config/modules/users/applications/default.nix
2021-10-05 23:45:02 +02:00

26 lines
448 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
];
fonts.fontconfig.enable = true;
};
}