mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2025-12-23 07:21:58 +00:00
Moved yazi config to home-manager and fixed plugins
This commit is contained in:
22
.gitmodules
vendored
22
.gitmodules
vendored
@@ -2,11 +2,23 @@
|
|||||||
path = home-manager/core/dotfiles
|
path = home-manager/core/dotfiles
|
||||||
url = https://github.com/Cian-H/dotfiles.git
|
url = https://github.com/Cian-H/dotfiles.git
|
||||||
[submodule "nixos/core/programs/yazi/plugins/hexyl.yazi"]
|
[submodule "nixos/core/programs/yazi/plugins/hexyl.yazi"]
|
||||||
path = nixos/core/programs/yazi/plugins/hexyl.yazi
|
path = home-manager/core/programs/yazi/plugins/hexyl.yazi
|
||||||
url = https://github.com/Reledia/hexyl.yazi
|
url = https://github.com/Reledia/hexyl.yazi
|
||||||
[submodule "nixos/core/programs/yazi/plugins/max-preview.yazi"]
|
|
||||||
path = nixos/core/programs/yazi/plugins/max-preview.yazi
|
|
||||||
url = https://github.com/SUSTech-data/max-preview.yazi
|
|
||||||
[submodule "nixos/core/programs/yazi/flavors/tokyo-night.yazi"]
|
[submodule "nixos/core/programs/yazi/flavors/tokyo-night.yazi"]
|
||||||
path = nixos/core/programs/yazi/flavors/tokyo-night.yazi
|
path = home-manager/core/programs/yazi/flavors/tokyo-night.yazi
|
||||||
url = https://github.com/BennyOe/tokyo-night.yazi.git
|
url = https://github.com/BennyOe/tokyo-night.yazi.git
|
||||||
|
[submodule "home-manager/core/programs/yazi/plugins/sudo.yazi"]
|
||||||
|
path = home-manager/core/programs/yazi/plugins/sudo.yazi
|
||||||
|
url = https://github.com/TD-Sky/sudo.yazi
|
||||||
|
[submodule "home-manager/core/programs/yazi/plugins/core"]
|
||||||
|
path = home-manager/core/programs/yazi/plugins/core
|
||||||
|
url = https://github.com/yazi-rs/plugins
|
||||||
|
[submodule "home-manager/core/programs/yazi/plugins/ouch"]
|
||||||
|
path = home-manager/core/programs/yazi/plugins/ouch.yazi
|
||||||
|
url = https://github.com/ndtoan96/ouch.yazi
|
||||||
|
[submodule "home-manager/core/programs/yazi/plugins/starship.yazi"]
|
||||||
|
path = home-manager/core/programs/yazi/plugins/starship.yazi
|
||||||
|
url = https://github.com/Rolv-Apneseth/starship.yazi
|
||||||
|
[submodule "home-manager/core/programs/yazi/plugins/glow.yazi"]
|
||||||
|
path = home-manager/core/programs/yazi/plugins/glow.yazi
|
||||||
|
url = https://github.com/Reledia/glow.yazi
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
unstablePkgs,
|
unstablePkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [
|
||||||
|
./programs/yazi.nix
|
||||||
|
];
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
|
|||||||
49
home-manager/core/programs/yazi.nix
Normal file
49
home-manager/core/programs/yazi.nix
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
unstablePkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
package = unstablePkgs.yazi;
|
||||||
|
initLua = ./yazi/init.lua;
|
||||||
|
# plugins = {
|
||||||
|
# sudo = ./yazi/plugins/sudo.yazi;
|
||||||
|
# chmod = ./yazi/plugins/core/chmod.yazi;
|
||||||
|
# mime-ext = ./yazi/plugins/core/mime-ext.yazi;
|
||||||
|
# git = ./yazi/plugins/core/git.yazi;
|
||||||
|
# ouch = ./yazi/plugins/ouch.yazi;
|
||||||
|
# starship = ./yazi/plugins/starship.yazi;
|
||||||
|
# full-border = ./yazi/plugins/core/full-border.yazi;
|
||||||
|
# glow = ./yazi/plugins/glow.yazi;
|
||||||
|
# hexyl = ./yazi/plugins/hexyl.yazi;
|
||||||
|
# max-preview = ./yazi/plugins/core/max-preview.yazi;
|
||||||
|
# };
|
||||||
|
# flavors = {
|
||||||
|
# tokyo-night = ./yazi/flavors/tokyo-night.yazi;
|
||||||
|
# };
|
||||||
|
settings = {
|
||||||
|
keymap = builtins.fromTOML (builtins.readFile ./yazi/keymap.toml);
|
||||||
|
theme = builtins.fromTOML (builtins.readFile ./yazi/theme.toml);
|
||||||
|
yazi = builtins.fromTOML (builtins.readFile ./yazi/yazi.toml);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Manually place plugins for now, until home-manager updates for newer yazi versions
|
||||||
|
xdg.configFile = {
|
||||||
|
"yazi/plugins/sudo.yazi".source = ./yazi/plugins/sudo.yazi;
|
||||||
|
"yazi/plugins/chmod.yazi".source = ./yazi/plugins/core/chmod.yazi;
|
||||||
|
"yazi/plugins/mime-ext.yazi".source = ./yazi/plugins/core/mime-ext.yazi;
|
||||||
|
"yazi/plugins/git.yazi".source = ./yazi/plugins/core/git.yazi;
|
||||||
|
"yazi/plugins/ouch.yazi".source = ./yazi/plugins/ouch.yazi;
|
||||||
|
"yazi/plugins/starship.yazi".source = ./yazi/plugins/starship.yazi;
|
||||||
|
"yazi/plugins/full-border.yazi".source = ./yazi/plugins/core/full-border.yazi;
|
||||||
|
"yazi/plugins/glow.yazi".source = ./yazi/plugins/glow.yazi;
|
||||||
|
"yazi/plugins/hexyl.yazi".source = ./yazi/plugins/hexyl.yazi;
|
||||||
|
"yazi/plugins/max-preview.yazi".source = ./yazi/plugins/core/max-preview.yazi;
|
||||||
|
"yazi/flavors/tokyo-night.yazi".source = ./yazi/flavors/tokyo-night.yazi;
|
||||||
|
};
|
||||||
|
}
|
||||||
1
home-manager/core/programs/yazi/plugins/core
Submodule
1
home-manager/core/programs/yazi/plugins/core
Submodule
Submodule home-manager/core/programs/yazi/plugins/core added at b12a9ab085
Submodule home-manager/core/programs/yazi/plugins/glow.yazi added at 0883738bd8
Submodule home-manager/core/programs/yazi/plugins/hexyl.yazi added at 016a09bcc2
Submodule home-manager/core/programs/yazi/plugins/ouch.yazi added at 2496cd9ac2
Submodule home-manager/core/programs/yazi/plugins/starship.yazi added at c0707544f1
Submodule home-manager/core/programs/yazi/plugins/sudo.yazi added at af70636fbc
@@ -7,7 +7,6 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./programs/yazi.nix
|
|
||||||
./programs/neovim.nix
|
./programs/neovim.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
unstablePkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.yazi = {
|
|
||||||
enable = true;
|
|
||||||
initLua = ./yazi/init.lua;
|
|
||||||
plugins = {
|
|
||||||
sudo = unstablePkgs.yaziPlugins.sudo;
|
|
||||||
chmod = unstablePkgs.yaziPlugins.chmod;
|
|
||||||
mime-ext = unstablePkgs.yaziPlugins.mime-ext;
|
|
||||||
git = unstablePkgs.yaziPlugins.git;
|
|
||||||
ouch = unstablePkgs.yaziPlugins.ouch;
|
|
||||||
starship = unstablePkgs.yaziPlugins.starship;
|
|
||||||
full-border = unstablePkgs.yaziPlugins.full-border;
|
|
||||||
glow = unstablePkgs.yaziPlugins.glow;
|
|
||||||
hexyl = ./yazi/plugins/hexyl.yazi;
|
|
||||||
max-preview = ./yazi/plugins/max-preview.yazi;
|
|
||||||
};
|
|
||||||
flavors = {
|
|
||||||
tokyo-night = ./yazi/flavors/tokyo-night.yazi;
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
keymap = builtins.fromTOML (builtins.readFile ./yazi/keymap.toml);
|
|
||||||
theme = builtins.fromTOML (builtins.readFile ./yazi/theme.toml);
|
|
||||||
yazi = builtins.fromTOML (builtins.readFile ./yazi/yazi.toml);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Submodule nixos/core/programs/yazi/plugins/hexyl.yazi deleted from 228a9ef2c5
Submodule nixos/core/programs/yazi/plugins/max-preview.yazi deleted from b65aafa404
Reference in New Issue
Block a user