Install dzgui on nix systems
Find a file
2024-07-05 15:18:13 -03:00
.github/workflows Update update.yml 2024-07-05 15:18:13 -03:00
package track releases using commit hash, add update script 2024-07-05 14:49:00 -03:00
.gitignore update to version 4.1.0 2023-12-17 19:01:03 -03:00
default.nix track releases using commit hash, add update script 2024-07-05 14:49:00 -03:00
flake.lock update 3.3.0 -> 5.2.3 2024-05-07 21:29:59 -03:00
flake.nix track releases using commit hash, add update script 2024-07-05 14:49:00 -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.