steam: Move to system instead of Flatpak
All checks were successful
check / check (push) Successful in 36s
All checks were successful
check / check (push) Successful in 36s
- Support of gamescope for HDR - Best integration with udev devices - Add proton-ge
This commit is contained in:
parent
350f85904b
commit
a4a651133b
6 changed files with 35 additions and 2 deletions
|
@ -20,6 +20,10 @@
|
|||
networking.hostName = "nixos-desktop-perso"; # Define your hostname.
|
||||
|
||||
modules.system = {
|
||||
apps = {
|
||||
steam.enable = true;
|
||||
};
|
||||
|
||||
desktop = {
|
||||
plasma.enable = true;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
|
@ -21,7 +21,6 @@ in
|
|||
packages = [
|
||||
# Gaming
|
||||
{ appId = "com.discordapp.Discord"; origin = "flathub"; }
|
||||
{ appId = "com.valvesoftware.Steam"; origin = "flathub"; }
|
||||
{ appId = "net.lutris.Lutris"; origin = "flathub"; }
|
||||
|
||||
# Pro
|
||||
|
|
7
modules/system/apps/default.nix
Normal file
7
modules/system/apps/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./steam
|
||||
];
|
||||
}
|
22
modules/system/apps/steam/default.nix
Normal file
22
modules/system/apps/steam/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.apps.steam;
|
||||
in
|
||||
{
|
||||
options.modules.system.apps.steam = {
|
||||
enable = mkEnableOption ''
|
||||
Enable steam with my custom configurations
|
||||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [ gamescope ];
|
||||
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
||||
};
|
||||
|
||||
hardware.steam-hardware.enable = true;
|
||||
};
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./apps
|
||||
./desktop
|
||||
./hardware
|
||||
./server
|
||||
|
|
Loading…
Reference in a new issue