Install dzgui on nix systems
Find a file
2023-04-21 23:21:23 -03:00
.gitignore update to version 3.2.4 2023-03-11 13:49:15 -03:00
default.nix dont create desktop entry during runtime 2023-04-21 23:21:23 -03:00
dont-write-desktop-entry-during-runtime.patch dont create desktop entry during runtime 2023-04-21 23:21:23 -03:00
dzgui.desktop Add desktop entry 2023-04-21 21:47:39 -03:00
flake.lock update to version 3.2.4 2023-03-11 13:49:15 -03:00
flake.nix Initial commit 2023-01-22 15:28:32 -03:00
LICENSE Initial commit 2023-01-22 13:35:00 -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.