Install dzgui on nix systems
Find a file
2023-05-26 20:00:03 -03:00
patches send noop command to steam before installing mods 2023-05-26 20:00:03 -03:00
.gitignore update to version 3.2.4 2023-03-11 13:49:15 -03:00
default.nix send noop command to steam before installing mods 2023-05-26 20:00:03 -03:00
dzgui.desktop Update to version 3.3.0 2023-05-17 23:04:30 -03:00
flake.lock update 2023-05-20 01:23:21 -03:00
flake.nix Update docs 2023-05-18 08:25:02 -03:00
LICENSE Initial commit 2023-01-22 13:35:00 -03:00
module.nix Add module 2023-05-17 23:47:22 -03:00
README.md Update docs 2023-05-18 08:25:02 -03:00

Install dzgui on nix-based systems

Installation

# install
nix profile install github:lelgenio/dzgui-nix

# update
nix profile upgrade '.*dzgui.*'

You will also need to set vm.max_map_count:

This is done automatically if you install via NixOs modules as shown

on NixOs systems:

# configuration.nix
{
    boot.kernel.sysctl."vm.max_map_count" = 1048576;
}

on non-NixOs systems:

sudo sysctl -w vm.max_map_count | sudo tee /etc/sysctl.d/dayz.conf

Flake users are assumed to have a flake.nix file and a configuration.nix.

1 - Add dzgui-nix as a flake input:

# flake.nix
{
    inputs.dzgui-nix = {
        # url of this repository, may change in the future
        url = "github:lelgenio/dzgui-nix";
        # save storage by not having duplicates of packages
        inputs.nixpkgs.follows = "nixpkgs";
    };
    # other inputs...
}

2 - Add the dzgui-nix module to your system configuration, and enable it:

# flake.nix
{
    outputs = inputs@{pkgs, ...}: {
        nixosConfigurations.your-hostname-here = lib.nixosSystem {
            modules = [ 
                # Add the module
                inputs.dzgui-nix.nixosModules.default 
                # Enable it, this can also go in configuration.nix
                { programs.dzgui.enable = true; }
                # other modules...
            ];
        };
    };
}

3 - Rebuild your system

nixos-rebuild --switch --flake .#your-hostname-here

Now dzgui will update together with your flake:

nix flake update

On non flake systems

Good luck.