Add all of iogamaster modules
This commit is contained in:
38
modules/nixos/apps/lutris/default.nix
Normal file
38
modules/nixos/apps/lutris/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.frajul; let
|
||||
cfg = config.apps.lutris;
|
||||
in {
|
||||
options.apps.lutris = with types; {
|
||||
enable = mkBoolOpt false "Enable or disable lutris";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
pkgs.lutris
|
||||
pkgs.fuse
|
||||
];
|
||||
|
||||
home.persist.directories = [
|
||||
".local/share/lutris"
|
||||
".cache/lutris"
|
||||
"Games"
|
||||
];
|
||||
|
||||
# Appimages for certain games
|
||||
boot.binfmt.registrations.appimage = {
|
||||
wrapInterpreterInShell = false;
|
||||
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
||||
recognitionType = "magic";
|
||||
offset = 0;
|
||||
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
||||
magicOrExtension = ''\x7fELF....AI\x02'';
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user