Install dzgui on nix systems
Find a file
2023-05-17 23:47:22 -03:00
patches Update to version 3.3.0 2023-05-17 23:04:30 -03:00
.gitignore update to version 3.2.4 2023-03-11 13:49:15 -03:00
default.nix Update to version 3.3.0 2023-05-17 23:04:30 -03:00
dzgui.desktop Update to version 3.3.0 2023-05-17 23:04:30 -03:00
flake.lock Update to version 3.3.0 2023-05-17 23:04:30 -03:00
flake.nix Add module 2023-05-17 23:47:22 -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 Initial commit 2023-01-22 15:28:32 -03:00

Install dzgui on nix-based systems

Installation

Using flake profiles (manual updates)

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

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

As a flake input (auto updates)

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

Note that this is just a suggestion on how to to it, you may have different configuration structure.

1 - Add dzgui as a flake input:

# flake.nix
{
    inputs.dzgui = {
        # 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";
    };
    # outputs...
}

2 - Pass inputs to your to you system config

# flake.nix
{
    outputs = inputs@{pkgs, ...}: {
        nixosConfigurations.your-hostname-here = lib.nixosSystem {
            specialArgs = { inherit inputs; };
            # modules...
        };
    };
}

3 - Add dzgui as a package in your system:

# configuration.nix
# this is the file generate by `nixos-generate-config`
{ inputs, pkgs, ... }: {
    environment.systemPackages = [
        inputs.dzgui.packages.${pkgs.system}.dzgui
    ];
}

4 - Rebuild your system

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

Now dzgui will auto update together with your system.

On non flake systems

Good luck.