Compare commits

...

2 Commits

2 changed files with 10 additions and 5 deletions

View File

@ -6,7 +6,7 @@
# archives
zip xz unzip p7zip
# utils
ripgrep jq
ripgrep jq libqalculate
# nix
nix-output-monitor
# dev
@ -16,7 +16,7 @@
# debug
strace ltrace lsof
# apps
vivaldi telegram-desktop onlyoffice-bin mpv
vivaldi telegram-desktop onlyoffice-bin mpv qalculate-gtk
# compatilibility
wineWowPackages.waylandFull winetricks
# misc

View File

@ -1,8 +1,9 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.software.editors.micro;
canUseOSC52 = config.modules.software.system.alacritty.enable;
in {
options.modules.software.editors.micro = {
enable = mkEnableOption "Enable micro, the simple command-line code editor";
@ -13,11 +14,15 @@ in {
in mkIf cfg.enable {
environment.variables.EDITOR = "micro";
hm.home.packages = mkIf (!canUseOSC52) (with pkgs; [
(if (config.modules.desktop.envProto == "x11") then xclip else wl-clipboard-x11)
]);
hm.programs.micro = {
enable = true;
settings = {
autosu = true;
clipboard = "terminal";
clipboard = if canUseOSC52 then "terminal" else "external";
savecursor = true;
scrollbar = true;
tabsize = 2;
@ -61,4 +66,4 @@ in {
color-link symbol.tag "#${base0E},#${base00}"
'';
};
}
}