Actually fix steam input error
This commit is contained in:
parent
4a89dff70e
commit
e3326913f1
5 changed files with 54 additions and 13 deletions
20
flake.nix
20
flake.nix
|
@ -18,7 +18,8 @@
|
||||||
home-manager,
|
home-manager,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
chaotic,
|
chaotic,
|
||||||
}:
|
...
|
||||||
|
}@inputs:
|
||||||
flake-utils.lib.eachDefaultSystem (
|
flake-utils.lib.eachDefaultSystem (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
|
@ -46,16 +47,21 @@
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
// {
|
// {
|
||||||
homeManagerModules.play = import ./modules/home;
|
homeManagerModules.play = import ./modules/home inputs;
|
||||||
nixosModules.play = {
|
nixosModules.play = import ./modules/nixos inputs;
|
||||||
imports = [
|
|
||||||
(import ./modules/nixos { inherit chaotic; })
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Default module (home-manager)
|
# Default module (home-manager)
|
||||||
homeManagerModules.default = self.homeManagerModules.play;
|
homeManagerModules.default = self.homeManagerModules.play;
|
||||||
|
|
||||||
|
# Test configuration
|
||||||
|
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
self.nixosModules.play
|
||||||
|
./test-config.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Overlay for packages
|
# Overlay for packages
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
proton-cachyos = final.callPackage ./pkgs/proton-cachyos { };
|
proton-cachyos = final.callPackage ./pkgs/proton-cachyos { };
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
{
|
inputs: {
|
||||||
imports = [
|
imports = [
|
||||||
./monitors.nix
|
./monitors.nix
|
||||||
./gamescoperun.nix
|
./gamescoperun.nix
|
||||||
./wrappers.nix
|
./wrappers.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Pass inputs to all modules via _module.args
|
||||||
|
_module.args = { inherit inputs; };
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
{ chaotic }:
|
inputs: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./amd.nix
|
./amd.nix
|
||||||
./ananicy.nix
|
./ananicy.nix
|
||||||
./gamemode.nix
|
./gamemode.nix
|
||||||
./lutris.nix
|
./lutris.nix
|
||||||
(import ./steam.nix { inherit chaotic; })
|
./steam.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Pass inputs to all modules via _module.args
|
||||||
|
_module.args = { inherit inputs; };
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
chaotic,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ let
|
||||||
|
|
||||||
# Import proton packages directly, some users wont chaotics overlay
|
# Import proton packages directly, some users wont chaotics overlay
|
||||||
proton-cachyos = pkgs.callPackage ../../pkgs/proton-cachyos { };
|
proton-cachyos = pkgs.callPackage ../../pkgs/proton-cachyos { };
|
||||||
proton-ge-custom = chaotic.legacyPackages.${pkgs.system}.proton-ge-custom;
|
proton-ge-custom = inputs.chaotic.legacyPackages.${pkgs.system}.proton-ge-custom;
|
||||||
|
|
||||||
defaultCompatPackages = [
|
defaultCompatPackages = [
|
||||||
proton-cachyos
|
proton-cachyos
|
||||||
|
|
30
test-config.nix
Normal file
30
test-config.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
# Minimal system config
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
# Minimal filesystem config
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-label/nixos";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Modules
|
||||||
|
play = {
|
||||||
|
amd.enable = true; # AMD GPU optimization
|
||||||
|
steam.enable = true; # Steam with Proton-CachyOS
|
||||||
|
lutris.enable = true; # Lutris game manager
|
||||||
|
gamemode.enable = true; # Performance optimization
|
||||||
|
ananicy.enable = true; # Process scheduling
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfreePredicate =
|
||||||
|
pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
"steam"
|
||||||
|
"steam-unwrapped"
|
||||||
|
"steam-run"
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue