sneeuwvlok/modules/home/editor/nano.nix
2026-03-30 09:09:01 +02:00

34 lines
608 B
Nix

{
config,
options,
lib,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.sneeuwvlok.editor.nano;
in {
options.sneeuwvlok.editor.nano = {
enable = mkEnableOption "nano";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [nano];
# programs.nano = {
# enable = true;
# syntaxHighlight = true;
# nanorc = ''
# set autoindent
# set jumpyscrolling
# set linenumbers
# set mouse
# set saveonexit
# set smarthome
# set tabstospaces
# set tabsize 2
# '';
# };
};
}