enable classic dwarf fortress

This commit is contained in:
Noah Masur 2023-04-19 19:50:10 -04:00
parent a2bbcf7f55
commit 1083ee4ff8
3 changed files with 21 additions and 0 deletions

View File

@ -85,6 +85,7 @@ nixpkgs.lib.nixosSystem {
nixlang.enable = true; nixlang.enable = true;
yt-dlp.enable = true; yt-dlp.enable = true;
gaming = { gaming = {
dwarf-fortress.enable = true;
enable = true; enable = true;
steam.enable = true; steam.enable = true;
legendary.enable = true; legendary.enable = true;

View File

@ -2,6 +2,7 @@
imports = [ imports = [
./chiaki.nix ./chiaki.nix
./dwarf-fortress.nix
./leagueoflegends.nix ./leagueoflegends.nix
./legendary.nix ./legendary.nix
./lutris.nix ./lutris.nix

View File

@ -0,0 +1,19 @@
{ config, pkgs, lib, ... }: {
options.gaming.dwarf-fortress.enable =
lib.mkEnableOption "Dwarf Fortress free edition.";
config = lib.mkIf config.gaming.dwarf-fortress.enable {
unfreePackages = [ "dwarf-fortress" ];
environment.systemPackages = let
dfDesktopItem = pkgs.makeDesktopItem {
name = "dwarf-fortress";
desktopName = "Dwarf Fortress";
exec =
"${pkgs.dwarf-fortress-packages.dwarf-fortress-full}/bin/dwarf-fortress";
terminal = false;
};
in [ pkgs.dwarf-fortress-packages.dwarf-fortress-full dfDesktopItem ];
};
}