mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 18:05:37 +00:00
enable classic dwarf fortress
This commit is contained in:
parent
a2bbcf7f55
commit
1083ee4ff8
@ -85,6 +85,7 @@ nixpkgs.lib.nixosSystem {
|
||||
nixlang.enable = true;
|
||||
yt-dlp.enable = true;
|
||||
gaming = {
|
||||
dwarf-fortress.enable = true;
|
||||
enable = true;
|
||||
steam.enable = true;
|
||||
legendary.enable = true;
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
imports = [
|
||||
./chiaki.nix
|
||||
./dwarf-fortress.nix
|
||||
./leagueoflegends.nix
|
||||
./legendary.nix
|
||||
./lutris.nix
|
||||
|
19
modules/nixos/gaming/dwarf-fortress.nix
Normal file
19
modules/nixos/gaming/dwarf-fortress.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user