refactor: modulization

This commit is contained in:
DACHXY 2025-04-09 13:24:02 +08:00
parent a29782681a
commit f6acb92ad0
63 changed files with 680 additions and 1959 deletions

View file

@ -1,18 +1,13 @@
{
lib,
config,
pkgs,
lib,
...
}:
{
nix = {
settings = {
warn-dirty = false;
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
substituters = [ "https://nix-gaming.cachix.org" ];
trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
@ -35,17 +30,20 @@
gamescope
];
};
gamemode = {
enable = true;
settings.general.inhibit_screensaver = 0;
};
};
hardware.steam-hardware.enable = true;
hardware = {
steam-hardware.enable = true;
# Xbox controller
xpadneo.enable = true;
};
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-unwrapped"
"steam-run"
];
boot.extraModulePackages = with config.boot.kernelPackages; [
xpadneo
];
}