mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
26 lines
545 B
Nix
26 lines
545 B
Nix
{ config, ... }:
|
|
let
|
|
fakeLutris = config.lib.test.mkStubPackage {
|
|
name = "lutris";
|
|
version = "0.5.22";
|
|
extraAttrs.override = _: fakeLutris;
|
|
};
|
|
in
|
|
{
|
|
programs.lutris = {
|
|
enable = true;
|
|
package = fakeLutris;
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
wineRunnersDir = "home-files/.local/share/lutris/runners";
|
|
runnersDir = "home-files/.config/lutris/runners";
|
|
in
|
|
''
|
|
assertPathNotExists ${wineRunnersDir}/proton
|
|
assertPathNotExists ${wineRunnersDir}/wine
|
|
assertPathNotExists ${runnersDir}
|
|
'';
|
|
}
|