mime shit

This commit is contained in:
2025-11-07 18:55:05 -06:00
parent 4af26da42f
commit 0534a04108
3 changed files with 13 additions and 5 deletions

View File

@@ -99,6 +99,10 @@
command = "/etc/profiles/per-user/blake/bin/nom-build"; command = "/etc/profiles/per-user/blake/bin/nom-build";
options = ["NOPASSWD"]; options = ["NOPASSWD"];
} }
{
command = "/etc/profiles/per-user/blake/bin/nom-shell";
options = ["NOPASSWD"];
}
]; ];
} }
]; ];

View File

@@ -13,13 +13,11 @@ in {
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = with pkgs; [xdg-ninja]; home.packages = with pkgs; [xdg-ninja ];
xdg = xdg = {
if pkgs.system == "x86_64-darwin"
then {}
else {
enable = true; enable = true;
configHome = "${home_dir}/.config"; configHome = "${home_dir}/.config";
cacheHome = "${home_dir}/.cache"; cacheHome = "${home_dir}/.cache";
dataHome = "${home_dir}/.local/share"; dataHome = "${home_dir}/.local/share";
@@ -37,6 +35,10 @@ in {
publicShare = "${home_dir}/public"; publicShare = "${home_dir}/public";
templates = "${home_dir}/templates"; templates = "${home_dir}/templates";
}; };
# mimeApps = {
# "<type>" = ["<desktop file>"]
# };
}; };
# misc env variables to get things out of ~ (<3 xdg-ninja) # misc env variables to get things out of ~ (<3 xdg-ninja)

View File

@@ -64,6 +64,8 @@ in {
v = "nvim"; v = "nvim";
sv = "sudo nvim"; sv = "sudo nvim";
vim = "nvim"; vim = "nvim";
mime-type = "xdg-mime query filetype";
mime-default = "xdg-mime query default";
# --- safety --- # --- safety ---
cp = "cp -iv"; cp = "cp -iv";