added zoxide and eza

This commit is contained in:
Aleksandr Lebedev 2024-12-20 22:50:50 +01:00
parent 8da38ec270
commit b860dab819
11 changed files with 41 additions and 4 deletions

View file

@ -127,11 +127,15 @@
loginBackground = false; loginBackground = false;
}) })
nix-output-monitor nix-output-monitor
eza
zoxide
fd fd
(pkgs.writeShellScriptBin "root-files" '' (pkgs.writeShellScriptBin "root-files" ''
sudo ${pkgs.fd}/bin/fd --one-file-system --base-directory / --type f --hidden --exclude "{tmp,etc/passwd}" sudo ${pkgs.fd}/bin/fd --one-file-system --base-directory / --type f --hidden --exclude "{tmp,etc/passwd}"
'') #https://www.reddit.com/r/NixOS/comments/1d1apm0/comment/l5tgbwz/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button '') #https://www.reddit.com/r/NixOS/comments/1d1apm0/comment/l5tgbwz/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
(pkgs.writeShellScriptBin "root-files" ''
sudo ${pkgs.fd}/bin/fd --one-file-system --base-directory / --type f --hidden --exclude "{tmp,etc/passwd}"
'')
gparted gparted
exfatprogs exfatprogs
kitty kitty
@ -311,6 +315,12 @@
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
}; };
programs.bash = {
shellAliases = {
ls = "${pkgs.eza}/bin/eza --icons=always";
};
};
#services.flatpak.enable = true; #services.flatpak.enable = true;
#services.flatpak.packages = [ #services.flatpak.packages = [
# "flathub:app/org.kde.dolphin//stable" # "flathub:app/org.kde.dolphin//stable"

View file

@ -7,8 +7,8 @@
[ [
./modules/nixvim ./modules/nixvim
./modules/fastfetch ./modules/fastfetch
] ++ (if hwconfig.useImpermanence then [ (import ./modules/impermanence/home.nix { inherit username; inherit inputs; } ) ] else []) ] ++ lib.optional (hwconfig.useImpermanence) (import ./modules/impermanence/home.nix { inherit username; inherit inputs; } )
++ (if config.programs.hyprland.enable then [./modules/hyprland/home.nix] else []) ++ lib.optional (config.programs.hyprland.enable) ./modules/hyprland/home.nix
++ lib.optional (builtins.pathExists ./homes/${username}) ./homes/${username}; ++ lib.optional (builtins.pathExists ./homes/${username}) ./homes/${username};
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
@ -41,6 +41,17 @@
enableBashIntegration = true; enableBashIntegration = true;
}; };
programs.eza = {
enable = true;
icons = "always";
};
programs.zoxide = {
enable = true;
options = [ "--cmd cd" ];
enableBashIntegration = true;
};
#xdg.configFile."qt5ct/qt5ct.conf".source = (pkgs.formats.ini {}).generate "kvantum.kvconfig" { #xdg.configFile."qt5ct/qt5ct.conf".source = (pkgs.formats.ini {}).generate "kvantum.kvconfig" {
# Appearance.icon_theme = "Breeze Dark"; # Appearance.icon_theme = "Breeze Dark";
# }; # };

View file

@ -3,7 +3,7 @@
imports = [ imports = [
inputs.apple-silicon-support.nixosModules.default inputs.apple-silicon-support.nixosModules.default
./mac-hardware-conf.nix ./mac-hardware-conf.nix
../../hardware/macos/configuration.nix ../../hardware/apple-silicon-linux
../../modules/hyprland ../../modules/hyprland

View file

@ -1,6 +1,8 @@
{ pkgs, inputs, hwconfig, ... }: { pkgs, inputs, hwconfig, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
kando
kdePackages.qtwayland kdePackages.qtwayland
#libsForQt5.qt5.qtwayland #libsForQt5.qt5.qtwayland
#libsForQt5.qt5.qtsvg #libsForQt5.qt5.qtsvg

View file

@ -39,6 +39,7 @@ in
"${pkgs.clipse}/bin/clipse -listen &" "${pkgs.clipse}/bin/clipse -listen &"
"${pkgs.swww}/bin/swww-daemon &" "${pkgs.swww}/bin/swww-daemon &"
"${pkgs.swww}/bin/swww img ${wallpaper-image} &" "${pkgs.swww}/bin/swww img ${wallpaper-image} &"
#"${pkgs.kando}/bin/kando"
]; ];
exec = [ exec = [
@ -64,6 +65,7 @@ in
"$mod, F, fullscreen," "$mod, F, fullscreen,"
"$mod, R, exec, $menu" "$mod, R, exec, $menu"
"$mod, V, exec, $clipboardManager" "$mod, V, exec, $clipboardManager"
#"CTRL, SPACE, global, kando:example-menu"
"$mod SHIFT, I, exec, source ${toggle_monitors}" "$mod SHIFT, I, exec, source ${toggle_monitors}"
"$mod SHIFT, O, exec, hyprctl dispatch dpms on" "$mod SHIFT, O, exec, hyprctl dispatch dpms on"
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
@ -159,6 +161,17 @@ in
}; };
windowrule = [
#kando
"noblur, kando"
"opaque, kando"
"size 100% 100%, kando"
"noborder, kando"
"noanim, kando"
"float, kando"
"pin, kando"
];
windowrulev2 = [ windowrulev2 = [
# Ignore maximize requests from apps. You'll probably like this. # Ignore maximize requests from apps. You'll probably like this.
"suppressevent maximize, class:.*" "suppressevent maximize, class:.*"
@ -173,6 +186,7 @@ in
#for clipboard manager #for clipboard manager
"float,class:(clipse)" "float,class:(clipse)"
"size 622 652,class:(clipse)" # set the size of the window as necessary "size 622 652,class:(clipse)" # set the size of the window as necessary
]; ];
decoration = { decoration = {