Update home config + better kakoone destkop entry management

This commit is contained in:
Filippo Berto 2021-10-24 19:11:18 +02:00
parent bb3a42ab6f
commit 8240e28c06
2 changed files with 20 additions and 24 deletions

View file

@ -10,7 +10,7 @@ in
(
final: prev: {
cocktail-bar-cli = final.callPackage ./custom/cocktail-bar-cli { };
update-background = final.callPackage ./custom/update-background { };
update-background = final.callPackage ./custom/update-background { backgrounds_directory = "$HOME/Immagini/Sfondi/1080+/1440+"; };
lockscreen = final.callPackage ./custom/lockscreen {
palette = final.rice.colorPalette;
font = final.rice.font.normal;
@ -43,7 +43,6 @@ in
# evolution
file
# firefox
foliate # ebook reader
gallery-dl
gitkraken
gnome.dconf-editor
@ -54,7 +53,6 @@ in
gnomeExtensions.dash-to-dock
gnomeExtensions.dynamic-panel-transparency
gnomeExtensions.just-perfection
gnomeExtensions.night-theme-switcher
gnome.file-roller
gnome.geary
gnome.ghex
@ -68,6 +66,7 @@ in
gnome.quadrapassel
gnome.seahorse
gnome.sushi
gnome.tracker
google-chrome
gucharmap
htop
@ -150,6 +149,7 @@ in
# ./modules/joystickwake.nix
./modules/jq.nix
./modules/kakoune.nix
./modules/keep.nix
# ./modules/keepassxc.nix
./modules/keychain.nix
# ./modules/kitty.nix
@ -159,7 +159,7 @@ in
./modules/man.nix
# ./modules/mangohud.nix
./modules/megasync.nix
# ./modules/nix-index.nix
./modules/nix-index.nix
./modules/noti.nix
./modules/obs-studio.nix
./modules/onedrive.nix
@ -176,6 +176,7 @@ in
./modules/terminator.nix
./modules/tmux.nix
./modules/update_background.nix
./modules/whatsapp.nix
# ./modules/xidlehook.nix
# ./modules/zathura.nix
./modules/zoxide.nix

View file

@ -17,6 +17,19 @@ let
};
packages = with pkgs; [
(makeDesktopItem
{
name = "kakoune";
type = "Application";
exec = "kak %U";
icon = "kakoune";
desktopName = "Kakoune";
comment = "Kakoune text editor";
terminal = true;
categories = "Development;Office;";
mimeType = "text/plain;text/*";
})
] ++ [
# editorconfig-core-c
python3.pkgs.editorconfig
] ++ (
@ -79,7 +92,7 @@ let
plugins = with pkgs; [
kakounePlugins.prelude-kak
kakounePlugins.kak-lsp
# kakounePlugins.auto-pairs-kak
kakounePlugins.auto-pairs-kak
kakounePlugins.powerline-kak
kakounePlugins.connect-kak
];
@ -137,7 +150,7 @@ in
];
hooks = with pkgs; [
{ name = "BufCreate"; option = ".*"; commands = "editorconfig-load"; }
{ name = "ModuleLoaded"; option = "auto-pairs"; commands = "auto-pairs-enable"; }
# { name = "ModuleLoaded"; option = "auto-pairs"; commands = "auto-pairs-enable"; }
{ name = "ModuleLoaded"; option = "powerline"; commands = builtins.concatStringsSep "\n" [ "powerline-enable" ]; }
# { name = "WinSetOption"; option = "filetype=(rust|python|c|cpp|latex|javascript|go|nix)"; commands = builtins.concatStringsSep "\n" [ "lsp-enable-window" ]; }
] ++ (
@ -350,22 +363,4 @@ in
''
)
);
xdg.dataFile."applications/kakoune.desktop".source =
let
desktopItem = pkgs.makeDesktopItem
{
name = "kakoune";
type = "Application";
exec = "kak %U";
icon = "kakoune";
desktopName = "Kakoune";
comment = "Kakoune text editor";
terminal = true;
categories = "Development;Office;";
mimeType = "text/plain;text/*";
};
in
builtins.toPath
"${desktopItem}/share/applications/kakoune.desktop";
}