created core/gaming.nix
This commit is contained in:
parent
e8f4e487cc
commit
f9d44a2c07
3 changed files with 58 additions and 18 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
## Semi-modularised config
|
## Semi-modularised config
|
||||||
./packages.nix # system-level packages here - needs tidying
|
./packages.nix # system-level packages here - needs tidying
|
||||||
./display.nix # declarations for display management
|
./display.nix # declarations for display management
|
||||||
|
./gaming.nix # for gaming stuff, ideally would be in home/
|
||||||
./audio.nix # sound go bwuuuaaaahhhhhhhh
|
./audio.nix # sound go bwuuuaaaahhhhhhhh
|
||||||
../home/users # user-level packages here
|
../home/users # user-level packages here
|
||||||
];
|
];
|
||||||
|
|
|
||||||
57
core/gaming.nix
Normal file
57
core/gaming.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.opentabletdriver = {
|
||||||
|
enable = true;
|
||||||
|
#package = [ ];
|
||||||
|
#daemon.enable = true;
|
||||||
|
#blacklistedKernelModules = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.sessionVariables = rec {
|
||||||
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
|
XDG_CONFIG_HOME = "$HOME/.config";
|
||||||
|
XDG_BIN_HOME = "$HOME/.local/bin";
|
||||||
|
XDG_DATA_HOME = "$HOME/.local/share";
|
||||||
|
# Steam needs this to find Proton-GE
|
||||||
|
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
|
||||||
|
# note: this doesn't replace PATH, it just adds this to it
|
||||||
|
PATH = [
|
||||||
|
"\${XDG_BIN_HOME}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
|
||||||
|
## I wanted this in the user-level area, but w/e i guess - NEEDS OWN NIX MODULE
|
||||||
|
steam = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
## To run "normal" linux applications seamlessly - OWN NIX MODULE ?
|
||||||
|
appimage = {
|
||||||
|
enable = true;
|
||||||
|
binfmt = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
## Enabling flatpak in case i need it
|
||||||
|
#services.flatpak.enable = true;
|
||||||
|
|
||||||
|
## ratbagd for gaming mouse config
|
||||||
|
services.ratbagd.enable = true;
|
||||||
|
|
||||||
|
## All common gaming packages declared here
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
steam
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -75,17 +75,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
## I wanted this in the user-level area, but w/e i guess - NEEDS OWN NIX MODULE
|
|
||||||
steam = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
## To run "normal" linux applications seamlessly - OWN NIX MODULE ?
|
|
||||||
appimage = {
|
|
||||||
enable = true;
|
|
||||||
binfmt = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
## NixOS CLI helper
|
## NixOS CLI helper
|
||||||
nh = {
|
nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -115,12 +104,6 @@
|
||||||
SYSTEMD_EDITOR = "neovim";
|
SYSTEMD_EDITOR = "neovim";
|
||||||
};
|
};
|
||||||
|
|
||||||
## Enabling flatpak in case i need it
|
|
||||||
#services.flatpak.enable = true;
|
|
||||||
|
|
||||||
## ratbagd for gaming mouse config
|
|
||||||
services.ratbagd.enable = true;
|
|
||||||
|
|
||||||
## All COMMON system-level packages declared here
|
## All COMMON system-level packages declared here
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
|
|
@ -144,7 +127,6 @@
|
||||||
|
|
||||||
########
|
########
|
||||||
## Temporary desktop/user-level
|
## Temporary desktop/user-level
|
||||||
steam
|
|
||||||
#gitwatch
|
#gitwatch
|
||||||
#waybar
|
#waybar
|
||||||
udiskie
|
udiskie
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue