mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2024-12-24 11:55:36 -03:00
patches | ||
.gitignore | ||
default.nix | ||
dzgui.desktop | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
module.nix | ||
README.md |
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.