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;
|
||||
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
|
||||
|
@ -38,8 +44,12 @@
|
|||
xdg.mimeApps = {
|
||||
enable = lib.mkDefault true;
|
||||
defaultApplications = {
|
||||
# pdf
|
||||
"application/pdf" = "zathura-wrapper.desktop";
|
||||
|
||||
# directory
|
||||
"inode/directory" = "thunar-wrapper.desktop";
|
||||
|
||||
# text
|
||||
"text/html" = "firefox.desktop";
|
||||
"text/plain" = "nvim-wrapper.desktop";
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# Gaming
|
||||
# xone failing to build - https://github.com/NixOS/nixpkgs/pull/347471
|
||||
# hardware.xone.enable = true;
|
||||
|
@ -7,11 +10,11 @@
|
|||
#Xbox controller
|
||||
# linuxKernel.packages.linux_zen.xone
|
||||
|
||||
# Steam
|
||||
# Steam
|
||||
mangohud
|
||||
gamemode
|
||||
|
||||
# WINE
|
||||
# WINE
|
||||
wine
|
||||
winetricks
|
||||
protontricks
|
||||
|
@ -29,6 +32,21 @@
|
|||
libxml2
|
||||
xml2
|
||||
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:
|
||||
|
@ -47,13 +65,13 @@
|
|||
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
steam = pkgs.steam.override {
|
||||
extraPkgs = pkgs: with pkgs; [
|
||||
pango
|
||||
libthai
|
||||
harfbuzz
|
||||
gamemode
|
||||
];
|
||||
extraPkgs = pkgs:
|
||||
with pkgs; [
|
||||
pango
|
||||
libthai
|
||||
harfbuzz
|
||||
gamemode
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue