1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ config, pkgs, lib, ... }:
let
cfg = config.ctucxConfig.programs.micro;
in {
options = {
ctucxConfig.programs.micro = {
enable = lib.mkEnableOption "micro";
};
};
config = lib.mkIf cfg.enable {
home-manager.users.katja = {
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;
};
};
xdg = lib.mkIf pkgs.stdenv.isLinux {
desktopEntries = {
micro = {
name = "micro";
settings = {
NoDisplay = "true";
};
};
};
};
home = {
sessionVariables.EDITOR = "micro";
shellAliases.nano = "micro";
};
};
};
}