mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
some alejandra formatting
This commit is contained in:
parent
45f355646b
commit
49aa311802
|
|
@ -77,6 +77,8 @@
|
||||||
"editor.formatOnSave" = false;
|
"editor.formatOnSave" = false;
|
||||||
"editor.formatOnType" = false;
|
"editor.formatOnType" = false;
|
||||||
};
|
};
|
||||||
|
"nixfmt.path" = "${pkgs.alejandra}/bin/alejandra"; #alejandra addon is broken so i just use nixfmt addon with alejandra lol
|
||||||
|
"nix.formatterPath" = "${pkgs.alejandra}/bin/alejandra";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
|
{ pkgs, inputs, config, ... }:
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./hypr
|
./hypr
|
||||||
./anyrun
|
./anyrun
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ config, lib, pkgs, inputs, stable, ... }:
|
{ config, lib, pkgs, inputs, stable, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
@ -10,7 +9,22 @@
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||||
users.users.delta.packages = with pkgs; [
|
users.users.delta.packages = with pkgs; [
|
||||||
swww stable.waybar stable.swaynotificationcenter cliphist fzf hyprshot slurp grim swaylock hypridle libnotify brightnessctl pamixer python3 grimblast networkmanagerapplet
|
swww
|
||||||
|
stable.waybar
|
||||||
|
stable.swaynotificationcenter
|
||||||
|
cliphist
|
||||||
|
fzf
|
||||||
|
hyprshot
|
||||||
|
slurp
|
||||||
|
grim
|
||||||
|
swaylock
|
||||||
|
hypridle
|
||||||
|
libnotify
|
||||||
|
brightnessctl
|
||||||
|
pamixer
|
||||||
|
python3
|
||||||
|
grimblast
|
||||||
|
networkmanagerapplet
|
||||||
];
|
];
|
||||||
# environment.systemPackages = [
|
# environment.systemPackages = [
|
||||||
# inputs.hyprland-contrib.packages.${pkgs.system}.grimblast.override { license = licenses.gpl3; }
|
# inputs.hyprland-contrib.packages.${pkgs.system}.grimblast.override { license = licenses.gpl3; }
|
||||||
|
|
@ -51,4 +65,4 @@
|
||||||
# ];
|
# ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# enableFishIntegration = true;
|
# enableFishIntegration = true;
|
||||||
};
|
};
|
||||||
home.file.".config/yazi/yazi.toml".text = ''
|
home.file.".config/yazi/yazi.toml".text = ''
|
||||||
[[manager.prepend_keymap]]
|
[[manager.prepend_keymap]]
|
||||||
on = [ "l" ]
|
on = [ "l" ]
|
||||||
run = "plugin --sync smart-enter"
|
run = "plugin --sync smart-enter"
|
||||||
|
|
@ -24,51 +26,49 @@
|
||||||
|
|
||||||
'';
|
'';
|
||||||
home.file.".config/yazi/plugins/smart-enter.yazi/init.lua".text = ''
|
home.file.".config/yazi/plugins/smart-enter.yazi/init.lua".text = ''
|
||||||
return {
|
return {
|
||||||
entry = function()
|
entry = function()
|
||||||
local h = cx.active.current.hovered
|
local h = cx.active.current.hovered
|
||||||
ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = true })
|
ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = true })
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
home.file.".config/yazi/plugins/smart-paste.yazi/init.lua".text = ''
|
home.file.".config/yazi/plugins/smart-paste.yazi/init.lua".text = ''
|
||||||
return {
|
return {
|
||||||
entry = function()
|
entry = function()
|
||||||
local h = cx.active.current.hovered
|
local h = cx.active.current.hovered
|
||||||
if h and h.cha.is_dir then
|
if h and h.cha.is_dir then
|
||||||
ya.manager_emit("enter", {})
|
ya.manager_emit("enter", {})
|
||||||
ya.manager_emit("paste", {})
|
ya.manager_emit("paste", {})
|
||||||
ya.manager_emit("leave", {})
|
ya.manager_emit("leave", {})
|
||||||
else
|
else
|
||||||
ya.manager_emit("paste", {})
|
ya.manager_emit("paste", {})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
home.file.".config/yazi/plugins/max-preview.yazi/init.lua".text = ''
|
home.file.".config/yazi/plugins/max-preview.yazi/init.lua".text = ''
|
||||||
local function entry(st)
|
local function entry(st)
|
||||||
if st.old then
|
if st.old then
|
||||||
Manager.layout, st.old = st.old, nil
|
Manager.layout, st.old = st.old, nil
|
||||||
else
|
else
|
||||||
st.old = Manager.layout
|
st.old = Manager.layout
|
||||||
Manager.layout = function(self, area)
|
Manager.layout = function(self, area)
|
||||||
self.area = area
|
self.area = area
|
||||||
|
|
||||||
return ui.Layout()
|
return ui.Layout()
|
||||||
:direction(ui.Layout.HORIZONTAL)
|
:direction(ui.Layout.HORIZONTAL)
|
||||||
:constraints({
|
:constraints({
|
||||||
ui.Constraint.Percentage(0),
|
ui.Constraint.Percentage(0),
|
||||||
ui.Constraint.Percentage(0),
|
ui.Constraint.Percentage(0),
|
||||||
ui.Constraint.Percentage(100),
|
ui.Constraint.Percentage(100),
|
||||||
})
|
})
|
||||||
:split(area)
|
:split(area)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
ya.app_emit("resize", {})
|
||||||
end
|
end
|
||||||
ya.app_emit("resize", {})
|
|
||||||
end
|
|
||||||
|
|
||||||
return { entry = entry }
|
return { entry = entry }
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue