Compare commits
2 Commits
5f3dabf56a
...
05165a0e5c
Author | SHA1 | Date |
---|---|---|
Jill | 05165a0e5c | |
Jill | 3730e752e1 |
|
@ -6,7 +6,7 @@
|
||||||
# archives
|
# archives
|
||||||
zip xz unzip p7zip
|
zip xz unzip p7zip
|
||||||
# utils
|
# utils
|
||||||
ripgrep jq
|
ripgrep jq libqalculate
|
||||||
# nix
|
# nix
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
# dev
|
# dev
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
# debug
|
# debug
|
||||||
strace ltrace lsof
|
strace ltrace lsof
|
||||||
# apps
|
# apps
|
||||||
vivaldi telegram-desktop onlyoffice-bin mpv
|
vivaldi telegram-desktop onlyoffice-bin mpv qalculate-gtk
|
||||||
# compatilibility
|
# compatilibility
|
||||||
wineWowPackages.waylandFull winetricks
|
wineWowPackages.waylandFull winetricks
|
||||||
# misc
|
# misc
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.software.editors.micro;
|
cfg = config.modules.software.editors.micro;
|
||||||
|
canUseOSC52 = config.modules.software.system.alacritty.enable;
|
||||||
in {
|
in {
|
||||||
options.modules.software.editors.micro = {
|
options.modules.software.editors.micro = {
|
||||||
enable = mkEnableOption "Enable micro, the simple command-line code editor";
|
enable = mkEnableOption "Enable micro, the simple command-line code editor";
|
||||||
|
@ -13,11 +14,15 @@ in {
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
environment.variables.EDITOR = "micro";
|
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 = {
|
hm.programs.micro = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
autosu = true;
|
autosu = true;
|
||||||
clipboard = "terminal";
|
clipboard = if canUseOSC52 then "terminal" else "external";
|
||||||
savecursor = true;
|
savecursor = true;
|
||||||
scrollbar = true;
|
scrollbar = true;
|
||||||
tabsize = 2;
|
tabsize = 2;
|
||||||
|
@ -61,4 +66,4 @@ in {
|
||||||
color-link symbol.tag "#${base0E},#${base00}"
|
color-link symbol.tag "#${base0E},#${base00}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue