i cant rember oof v2
This commit is contained in:
parent
48bc7c14a0
commit
bb641b9068
8 changed files with 146 additions and 76 deletions
|
|
@ -60,8 +60,10 @@
|
|||
};
|
||||
|
||||
hardware = {
|
||||
|
||||
## Enable all firmware modules
|
||||
enableAllFirmware = true;
|
||||
sensor.hddtemp.enable = true;
|
||||
usbStorage.manageStartStop = true;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -23,14 +23,14 @@
|
|||
wayland.enable = true;
|
||||
};
|
||||
};
|
||||
## Eventual login greeter/display manager,
|
||||
## wayland native.
|
||||
#services.greetd = {
|
||||
#enable = true;
|
||||
#settings.default_session = {
|
||||
#command = "${pkgs.greetd.regreet}/bin/regreet";
|
||||
#};
|
||||
#};
|
||||
## Eventual login greeter/display manager,
|
||||
## wayland native.
|
||||
#greetd = {
|
||||
#enable = true;
|
||||
#settings.default_session = {
|
||||
#command = "${pkgs.greetd.regreet}/bin/regreet";
|
||||
#};
|
||||
#};
|
||||
|
||||
## Virtual filesystem, needed this for something i think ?
|
||||
gvfs.enable = true;
|
||||
|
|
|
|||
104
core/gaming.nix
104
core/gaming.nix
|
|
@ -8,37 +8,60 @@
|
|||
nixpkgs = {
|
||||
};
|
||||
|
||||
hardware.opentabletdriver = {
|
||||
enable = true;
|
||||
#package = [ ];
|
||||
#daemon.enable = true;
|
||||
#blacklistedKernelModules = [ ];
|
||||
hardware = {
|
||||
|
||||
opentabletdriver = {
|
||||
## Open tablet driver, for Osu!, mainly.
|
||||
enable = true;
|
||||
## Disable conflicting drivers
|
||||
blacklistedKernelModules = [
|
||||
"hid-uclogic"
|
||||
"wacom"
|
||||
];
|
||||
## Enables the daemon via systemd
|
||||
daemon.enable = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
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}"
|
||||
services = {
|
||||
## Enabling flatpak in case i need it
|
||||
#flatpak.enable = true;
|
||||
## ratbagd for gaming mouse config
|
||||
ratbagd.enable = true;
|
||||
};
|
||||
|
||||
environment = {
|
||||
## All common gaming packages declared here
|
||||
systemPackages = with pkgs; [
|
||||
#steam # games storefront/launcher
|
||||
piper # mouse configuration
|
||||
];
|
||||
## These are important apparently :uh:
|
||||
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 = {
|
||||
|
||||
## Java for some reason
|
||||
java.enable = true;
|
||||
|
||||
## "GameMode"
|
||||
gamemode = {
|
||||
## To run "normal" linux applications seamlessly
|
||||
appimage = {
|
||||
enable = true;
|
||||
binfmt = true;
|
||||
};
|
||||
|
||||
## Gamescope compositor for steam
|
||||
## (config copy-pasted from nixos wiki)
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
|
|
@ -48,17 +71,40 @@
|
|||
];
|
||||
};
|
||||
|
||||
## "GameMode" - https://nixos.wiki/wiki/Gamemode
|
||||
## (config copy-pasted from mynixos)
|
||||
gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
renice = 10;
|
||||
};
|
||||
## Warning: GPU optimisations have the potential to damage hardware
|
||||
gpu = {
|
||||
apply_gpu_optimisations = "accept-responsibility";
|
||||
gpu_device = 0;
|
||||
amd_performance_level = "high";
|
||||
};
|
||||
custom = {
|
||||
#start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
||||
#end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
## Steam itself
|
||||
steam = {
|
||||
enable = true;
|
||||
#remotePlay.openFirewall = true;
|
||||
## This should help games run more betterer
|
||||
gamescopeSession = {
|
||||
enable = true;
|
||||
};
|
||||
## No clue what this is doing
|
||||
package = pkgs.steam.override {
|
||||
extraLibraries = pkgs: [
|
||||
pkgs.xorg.libxcb
|
||||
];
|
||||
## No clue what this shit does
|
||||
extraPkgs = pkgs: with pkgs; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
|
|
@ -73,6 +119,8 @@
|
|||
gamemode
|
||||
];
|
||||
};
|
||||
## Not sure we need gamescope here
|
||||
## as it's defined elsewhere but o well
|
||||
extraPackages = with pkgs; [
|
||||
gamescope
|
||||
];
|
||||
|
|
@ -82,24 +130,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
## To run "normal" linux applications seamlessly
|
||||
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 # games storefront/launcher
|
||||
piper # mouse configuration
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,10 +91,8 @@
|
|||
## theoretically pass off as a complete linux distribution.
|
||||
## So there needs to be -some- way for users who are unwilling
|
||||
## to use a terminal and are more comfortable with a GUI.
|
||||
|
||||
#inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
|
||||
#nixos-conf-editor
|
||||
|
||||
## Disabling this for now. Eats disk space, and it's useless until
|
||||
## wei make a single "control" module using 'let bindings' anyway.
|
||||
########
|
||||
|
|
@ -140,6 +138,7 @@
|
|||
git-crypt # Transparent file encryption in git
|
||||
undervolt # Utility to change CPU settings
|
||||
android-tools # Commands for interfacing with android devices
|
||||
smartmontools # Tools for monitoring HDD health
|
||||
magic-wormhole # Direct file sharing
|
||||
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue