mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +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;
|
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;
|
||||||
|
@ -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
|
||||||
|
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