26 lines
448 B
Nix
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;
|
|
};
|
|
}
|