Install dzgui on nix systems
Find a file
2024-12-09 12:14:55 -03:00
.github/workflows Update update.yml 2024-07-05 15:18:13 -03:00
nixos-test refactor: extract more things from flake.nix 2024-10-01 12:22:18 -03:00
package fix: Maintain compatibility with 24.05 2024-11-30 13:05:57 -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 feat: update flake and fix package zenity 2024-11-30 16:40:42 +01:00
flake.nix refactor: Deprecate NixOs module 2024-12-09 12:14:55 -03:00
LICENSE Initial commit 2023-01-22 13:35:00 -03:00
module.nix refactor: be less flake and overlay dependant 2024-10-01 12:17:07 -03:00
overlay.nix refactor: extract more things from flake.nix 2024-10-01 12:22:18 -03:00
README.md refactor: Deprecate NixOs module 2024-12-09 12:14:55 -03:00

Install dzgui on nix-based systems

Installation

Using flake profiles

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

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

On non flake NixOs systems

# configuration.nix
{ pkgs, ... }:
let
  dzgui-nix = pkgs.fetchFromGitHub {
    owner = "lelgenio";
    repo = "dzgui-nix";
    rev = "995dd52adc6fe5cbbd4530a9f2add88e1e04d0da";
    hash = "sha256-giMAU0PqMOqTe3zQax4rTbhu5efyFcaQu3EP5CqPIaU=";
  };
  dzgui = (pkgs.callPackage "${dzgui-nix}/package");
in
{
  environment.systemPackages = [
    dzgui
  ];
}

As part of a NixOs system flake

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 package to your environment packages:

# flake.nix
{
    outputs = inputs@{pkgs, ...}: {
        nixosConfigurations.your-hostname-here = lib.nixosSystem {
            modules = [
                {
                  environment.systemPackages = [
                    inputs.dzgui-nix.packages.default
                  ];
                }
                # other modules...
            ];
        };
    };
}

3 - Rebuild your system

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

Now dzgui will update together with your flake:

nix flake update