Update home config + better kakoone destkop entry management
This commit is contained in:
parent
bb3a42ab6f
commit
8240e28c06
2 changed files with 20 additions and 24 deletions
9
home.nix
9
home.nix
|
|
@ -10,7 +10,7 @@ in
|
||||||
(
|
(
|
||||||
final: prev: {
|
final: prev: {
|
||||||
cocktail-bar-cli = final.callPackage ./custom/cocktail-bar-cli { };
|
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 {
|
lockscreen = final.callPackage ./custom/lockscreen {
|
||||||
palette = final.rice.colorPalette;
|
palette = final.rice.colorPalette;
|
||||||
font = final.rice.font.normal;
|
font = final.rice.font.normal;
|
||||||
|
|
@ -43,7 +43,6 @@ in
|
||||||
# evolution
|
# evolution
|
||||||
file
|
file
|
||||||
# firefox
|
# firefox
|
||||||
foliate # ebook reader
|
|
||||||
gallery-dl
|
gallery-dl
|
||||||
gitkraken
|
gitkraken
|
||||||
gnome.dconf-editor
|
gnome.dconf-editor
|
||||||
|
|
@ -54,7 +53,6 @@ in
|
||||||
gnomeExtensions.dash-to-dock
|
gnomeExtensions.dash-to-dock
|
||||||
gnomeExtensions.dynamic-panel-transparency
|
gnomeExtensions.dynamic-panel-transparency
|
||||||
gnomeExtensions.just-perfection
|
gnomeExtensions.just-perfection
|
||||||
gnomeExtensions.night-theme-switcher
|
|
||||||
gnome.file-roller
|
gnome.file-roller
|
||||||
gnome.geary
|
gnome.geary
|
||||||
gnome.ghex
|
gnome.ghex
|
||||||
|
|
@ -68,6 +66,7 @@ in
|
||||||
gnome.quadrapassel
|
gnome.quadrapassel
|
||||||
gnome.seahorse
|
gnome.seahorse
|
||||||
gnome.sushi
|
gnome.sushi
|
||||||
|
gnome.tracker
|
||||||
google-chrome
|
google-chrome
|
||||||
gucharmap
|
gucharmap
|
||||||
htop
|
htop
|
||||||
|
|
@ -150,6 +149,7 @@ in
|
||||||
# ./modules/joystickwake.nix
|
# ./modules/joystickwake.nix
|
||||||
./modules/jq.nix
|
./modules/jq.nix
|
||||||
./modules/kakoune.nix
|
./modules/kakoune.nix
|
||||||
|
./modules/keep.nix
|
||||||
# ./modules/keepassxc.nix
|
# ./modules/keepassxc.nix
|
||||||
./modules/keychain.nix
|
./modules/keychain.nix
|
||||||
# ./modules/kitty.nix
|
# ./modules/kitty.nix
|
||||||
|
|
@ -159,7 +159,7 @@ in
|
||||||
./modules/man.nix
|
./modules/man.nix
|
||||||
# ./modules/mangohud.nix
|
# ./modules/mangohud.nix
|
||||||
./modules/megasync.nix
|
./modules/megasync.nix
|
||||||
# ./modules/nix-index.nix
|
./modules/nix-index.nix
|
||||||
./modules/noti.nix
|
./modules/noti.nix
|
||||||
./modules/obs-studio.nix
|
./modules/obs-studio.nix
|
||||||
./modules/onedrive.nix
|
./modules/onedrive.nix
|
||||||
|
|
@ -176,6 +176,7 @@ in
|
||||||
./modules/terminator.nix
|
./modules/terminator.nix
|
||||||
./modules/tmux.nix
|
./modules/tmux.nix
|
||||||
./modules/update_background.nix
|
./modules/update_background.nix
|
||||||
|
./modules/whatsapp.nix
|
||||||
# ./modules/xidlehook.nix
|
# ./modules/xidlehook.nix
|
||||||
# ./modules/zathura.nix
|
# ./modules/zathura.nix
|
||||||
./modules/zoxide.nix
|
./modules/zoxide.nix
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,19 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = with pkgs; [
|
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
|
# editorconfig-core-c
|
||||||
python3.pkgs.editorconfig
|
python3.pkgs.editorconfig
|
||||||
] ++ (
|
] ++ (
|
||||||
|
|
@ -79,7 +92,7 @@ let
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
kakounePlugins.prelude-kak
|
kakounePlugins.prelude-kak
|
||||||
kakounePlugins.kak-lsp
|
kakounePlugins.kak-lsp
|
||||||
# kakounePlugins.auto-pairs-kak
|
kakounePlugins.auto-pairs-kak
|
||||||
kakounePlugins.powerline-kak
|
kakounePlugins.powerline-kak
|
||||||
kakounePlugins.connect-kak
|
kakounePlugins.connect-kak
|
||||||
];
|
];
|
||||||
|
|
@ -137,7 +150,7 @@ in
|
||||||
];
|
];
|
||||||
hooks = with pkgs; [
|
hooks = with pkgs; [
|
||||||
{ name = "BufCreate"; option = ".*"; commands = "editorconfig-load"; }
|
{ 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 = "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" ]; }
|
# { 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";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue