Coder Social home page Coder Social logo

dzgui-nix's Introduction

Install dzgui on nix-based systems

Installation

Using flake profiles (not recommended)

# 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

As a NixOs module (recommended)

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.

dzgui-nix's People

Contributors

physshell avatar lelgenio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.