add inode/directory to mimelist and minecraft to gaming
This commit is contained in:
parent
36bbf5e6c3
commit
d135eead57
2 changed files with 38 additions and 10 deletions
|
@ -30,6 +30,12 @@
|
||||||
terminal = false;
|
terminal = false;
|
||||||
mimeType = ["video/*"];
|
mimeType = ["video/*"];
|
||||||
};
|
};
|
||||||
|
thunar-wrapper = {
|
||||||
|
name = "Thunar-wrapper";
|
||||||
|
exec = "st -T st-float -g 150x50 -e thunar %F";
|
||||||
|
terminal = false;
|
||||||
|
mimeType = ["inode/directory"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Forces creation of mimeapps.list if hm link has been overwritten by another application
|
# Forces creation of mimeapps.list if hm link has been overwritten by another application
|
||||||
|
@ -38,8 +44,12 @@
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
|
# pdf
|
||||||
"application/pdf" = "zathura-wrapper.desktop";
|
"application/pdf" = "zathura-wrapper.desktop";
|
||||||
|
|
||||||
|
# directory
|
||||||
|
"inode/directory" = "thunar-wrapper.desktop";
|
||||||
|
|
||||||
# text
|
# text
|
||||||
"text/html" = "firefox.desktop";
|
"text/html" = "firefox.desktop";
|
||||||
"text/plain" = "nvim-wrapper.desktop";
|
"text/plain" = "nvim-wrapper.desktop";
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# Gaming
|
# Gaming
|
||||||
# xone failing to build - https://github.com/NixOS/nixpkgs/pull/347471
|
# xone failing to build - https://github.com/NixOS/nixpkgs/pull/347471
|
||||||
# hardware.xone.enable = true;
|
# hardware.xone.enable = true;
|
||||||
|
@ -29,6 +32,21 @@
|
||||||
libxml2
|
libxml2
|
||||||
xml2
|
xml2
|
||||||
SDL2
|
SDL2
|
||||||
|
|
||||||
|
# minecraft
|
||||||
|
prismlauncher
|
||||||
|
(prismlauncher.override {
|
||||||
|
# Add binary required by some mod
|
||||||
|
additionalPrograms = [ffmpeg];
|
||||||
|
|
||||||
|
# Change Java runtimes available to Prism Launcher
|
||||||
|
jdks = [
|
||||||
|
graalvm-ce
|
||||||
|
zulu8
|
||||||
|
zulu17
|
||||||
|
zulu
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
@ -47,7 +65,8 @@
|
||||||
|
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
steam = pkgs.steam.override {
|
steam = pkgs.steam.override {
|
||||||
extraPkgs = pkgs: with pkgs; [
|
extraPkgs = pkgs:
|
||||||
|
with pkgs; [
|
||||||
pango
|
pango
|
||||||
libthai
|
libthai
|
||||||
harfbuzz
|
harfbuzz
|
||||||
|
@ -55,5 +74,4 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue