style(nixfmt): formatting using nixfmt cli tools
This commit is contained in:
parent
b804520f4c
commit
fbe803b928
46 changed files with 2133 additions and 1700 deletions
|
|
@ -1,21 +1,38 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
lutris = import ./lutris.nix {
|
||||
inherit config pkgs lib;
|
||||
};
|
||||
cfg = config.games;
|
||||
lutris = import ./lutris.nix {
|
||||
inherit config pkgs lib;
|
||||
};
|
||||
cfg = config.games;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
lutris
|
||||
];
|
||||
imports = [
|
||||
lutris
|
||||
];
|
||||
|
||||
options.games = {
|
||||
lutris = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable lutris";
|
||||
};
|
||||
};
|
||||
options.games = {
|
||||
steam = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable steam installation";
|
||||
};
|
||||
bp = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable the autostart of steam in big picture";
|
||||
};
|
||||
};
|
||||
lutris = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable lutris";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,20 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.games.lutris;
|
||||
cfg = config.games.lutris;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wine-staging
|
||||
lutris
|
||||
dxvk
|
||||
vkd3d
|
||||
];
|
||||
};
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wine-staging
|
||||
lutris
|
||||
dxvk
|
||||
vkd3d
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
49
modules/games/steam.nix
Normal file
49
modules/games/steam.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.games.steam;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
};
|
||||
|
||||
programs.gamemode.enable = true;
|
||||
|
||||
systemd.user.services."steam-bp" = lib.mkIf cfg.bp {
|
||||
description = "Steam Big Picture auto start";
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.steam}/bin/steam -tenfoot -fulldesktopres";
|
||||
Restart = "on-failure";
|
||||
Environment = [
|
||||
"SDL_VIDEO_X11_DGAMOUSE=0"
|
||||
"STEAM_USE_OGL=1"
|
||||
"GAMEMODERUNEXEC=1"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
desktopManager.plasma6.enable = lib.mkIf cfg.bp true;
|
||||
displayManager = lib.mkIf cfg.bp {
|
||||
defaultSession = "plasmax11";
|
||||
sddm.enable = true;
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "raphael";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue