Compare commits
2 Commits
5f3dabf56a
...
05165a0e5c
Author | SHA1 | Date |
---|---|---|
Jill | 05165a0e5c | |
Jill | 3730e752e1 |
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
'';
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue