Compare commits
3 commits
abacd345af
...
3d2f4e8724
Author | SHA1 | Date | |
---|---|---|---|
3d2f4e8724 | |||
18d08756cd | |||
d7d9bfcc74 |
5 changed files with 119 additions and 16 deletions
|
@ -92,7 +92,28 @@ in {
|
|||
friendly-snippets
|
||||
|
||||
{
|
||||
plugin = nvim-treesitter.withAllGrammars;
|
||||
plugin = nvim-treesitter.withPlugins (p: [
|
||||
p.vim
|
||||
p.bash
|
||||
p.lua
|
||||
p.python
|
||||
p.json
|
||||
p.java
|
||||
p.rust
|
||||
p.cpp
|
||||
p.css
|
||||
p.csv
|
||||
p.dockerfile
|
||||
p.diff
|
||||
p.gitignore
|
||||
p.git_config
|
||||
p.gitattributes
|
||||
p.make
|
||||
p.yaml
|
||||
p.toml
|
||||
p.typescript
|
||||
p.xml
|
||||
]);
|
||||
config = builtins.readFile ./plugin/treesitter.lua;
|
||||
type = "lua";
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
../common
|
||||
./zathura.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
|
|
44
home/features/desktop/awesome/zathura.nix
Normal file
44
home/features/desktop/awesome/zathura.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{pkgs, ...}: {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
options = {
|
||||
default-fg = "#CDD6F4";
|
||||
default-bg = "#1E1E2E";
|
||||
|
||||
completion-bg = "#313244";
|
||||
completion-fg = "#CDD6F4";
|
||||
completion-highlight-bg = "#575268";
|
||||
completion-highlight-fg = "#CDD6F4";
|
||||
completion-group-bg = "#313244";
|
||||
completion-group-fg = "#89B4FA";
|
||||
|
||||
statusbar-fg = "#CDD6F4";
|
||||
statusbar-bg = "#313244";
|
||||
|
||||
notification-bg = "#313244";
|
||||
notification-fg = "#CDD6F4";
|
||||
notification-error-bg = "#313244";
|
||||
notification-error-fg = "#F38BA8";
|
||||
notification-warning-bg = "#313244";
|
||||
notification-warning-fg = "#FAE3B0";
|
||||
|
||||
inputbar-fg = "#CDD6F4";
|
||||
inputbar-bg = "#313244";
|
||||
|
||||
recolor-lightcolor = "#1E1E2E";
|
||||
recolor-darkcolor = "#CDD6F4";
|
||||
|
||||
index-fg = "#CDD6F4";
|
||||
index-bg = "#1E1E2E";
|
||||
index-active-fg = "#CDD6F4";
|
||||
index-active-bg = "#313244";
|
||||
|
||||
render-loading-bg = "#1E1E2E";
|
||||
render-loading-fg = "#CDD6F4";
|
||||
|
||||
highlight-color = "#575268";
|
||||
highlight-fg = "#F5C2E7";
|
||||
highlight-active-color = "#F5C2E7";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,18 +1,55 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs.unstable; [
|
||||
heroic # Game Launcher
|
||||
lutris # Game Launcher
|
||||
steam # Game Launcher
|
||||
];
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
gamescopeSession.enable = false;
|
||||
};
|
||||
# Steam: Right-click game - Properties - Launch options: gamemoderun %command%
|
||||
# Lutris: General Preferences - Enable Feral GameMode
|
||||
# - Global options - Add Environment Variables: LD_PRELOAD=/nix/store/*-gamemode-*-lib/lib/libgamemodeauto.so
|
||||
|
||||
alvr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
|
||||
hardware = {
|
||||
# Enable Steam hardware compatibility
|
||||
# steam-hardware.enable = true;
|
||||
|
||||
# Enable OpenGL
|
||||
opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [libva-utils];
|
||||
};
|
||||
};
|
||||
|
||||
# Allow Minecraft server ports
|
||||
networking.firewall.allowedTCPPorts = [25565];
|
||||
|
||||
# Fixes SteamLink/Remote play crashing, add packages necessary for VR
|
||||
environment.systemPackages = with pkgs;
|
||||
[libcanberra protonup-qt]
|
||||
++ [
|
||||
android-tools
|
||||
android-udev-rules
|
||||
sidequest
|
||||
BeatSaberModManager
|
||||
helvum
|
||||
];
|
||||
|
||||
# Fixes issue with SteamVR not starting
|
||||
system.activationScripts = {
|
||||
fixSteamVR = "${pkgs.libcap}/bin/setcap CAP_SYS_NICE+ep /home/ghoscht/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher";
|
||||
};
|
||||
|
||||
xdg.mime = {
|
||||
defaultApplications."x-scheme-handler/steam" = "steam.desktop";
|
||||
addedAssociations."x-scheme-handler/steam" = "steam.desktop";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
programs.alvr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
# programs.alvr = {
|
||||
# enable = true;
|
||||
# openFirewall = true;
|
||||
# };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue