Skip to content

Commit

Permalink
add lutris and move gaming to module
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmiro committed Dec 25, 2024
1 parent 1b84c7c commit 82767e7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
3 changes: 1 addition & 2 deletions machines/newton/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
syncthing.enable = true;
adb.enable = true;
docker.enable = true;
gaming.enable = true;
};

# programs.ssh.askPassword = pkgs.lib.mkForce "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
Expand Down Expand Up @@ -48,8 +49,6 @@
systemd.services.NetworkManager-wait-online.enable = pkgs.lib.mkForce false;
systemd.services.systemd-networkd-wait-online.enable = pkgs.lib.mkForce false;

programs.steam.enable = true;

# Configure keymap in X11
services.xserver.xkb = {
layout = "de";
Expand Down
24 changes: 24 additions & 0 deletions modules/gaming/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ pkgs, lib, config, ... }:
with lib;
let cfg = config.paul.gaming;
in
{

options.paul.gaming = {
enable = mkEnableOption "activate gaming programs and options";
};

config = mkIf cfg.enable {
programs.steam.enable = true;
environment.systemPackages = with pkgs; [
(lutris.override {
extraPkgs = pkgs: [
# List package dependencies here
];
extraLibraries = pkgs: [
# List library dependencies here
];
})
];
};
}

0 comments on commit 82767e7

Please sign in to comment.