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

27 lines
448 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 {
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;
};
}