{ pkgs, lib, ... }: { home = { sessionVariables.EDITOR = "micro"; shellAliases.nano = "micro"; }; programs.micro = { enable = true; settings = { "*.nix".tabstospaces = true; "*.nix".tabmovement = true; "*.nix".tabsize = 2; "*.nim".tabstospaces = true; "*.nim".tabmovement = true; "*.nim".tabsize = 2; scrollbar = true; eofnewline = false; wordwrap = true; softwrap = true; ignorecase = true; savehistory = false; }; }; xdg = lib.mkIf pkgs.stdenv.isLinux { desktopEntries.micro = { name = "micro"; settings.NoDisplay = "true"; }; }; }