staging(no atomic commits thank to git-hooks)
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
db3b60a846
commit
c5f949506a
117 changed files with 2520 additions and 999 deletions
22
hand7s/xdg/configFile.nix
Normal file
22
hand7s/xdg/configFile.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
xdg = {
|
||||
configFile = {
|
||||
"xdg-desktop-portal-termfilechooser/config" = {
|
||||
enable = true;
|
||||
force = true;
|
||||
text = ''
|
||||
[filechooser]
|
||||
cmd="${pkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh"
|
||||
default_dir=$HOME
|
||||
env=TERMCMD="${lib.getExe pkgs.ghostty} --title='yazi-picker' -e"
|
||||
open_mode=suggested
|
||||
save_mode=last
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
11
hand7s/xdg/mime.nix
Normal file
11
hand7s/xdg/mime.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
_: {
|
||||
xdg = {
|
||||
mime = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
35
hand7s/xdg/portal.nix
Normal file
35
hand7s/xdg/portal.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = lib.mkIf config.home.gui.enable true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-termfilechooser
|
||||
];
|
||||
|
||||
config = {
|
||||
common = {
|
||||
default = [
|
||||
"gtk"
|
||||
];
|
||||
};
|
||||
|
||||
hyprland = {
|
||||
default = [
|
||||
"gtk"
|
||||
"hyprland"
|
||||
];
|
||||
|
||||
"org.freedesktop.impl.portal.FileChooser" = [
|
||||
"termfilechooser"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
12
hand7s/xdg/terminal.nix
Normal file
12
hand7s/xdg/terminal.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
_: {
|
||||
xdg = {
|
||||
terminal-exec = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default = [
|
||||
"com.mitchellh.ghostty.desktop"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue