mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2025-08-02 14:55:53 -03:00
Initial commit
This commit is contained in:
parent
5e15528f41
commit
041210735c
4 changed files with 193 additions and 0 deletions
72
README.md
Normal file
72
README.md
Normal file
|
@ -0,0 +1,72 @@
|
|||
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:
|
||||
|
||||
```nix
|
||||
# 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
|
||||
|
||||
```nix
|
||||
# flake.nix
|
||||
{
|
||||
outputs = inputs@{pkgs, ...}: {
|
||||
nixosConfigurations.your-hostname-here = lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
# modules...
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
3 - Add dzgui as a package in your system:
|
||||
|
||||
```nix
|
||||
# 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
|
||||
|
||||
```sh
|
||||
nixos-rebuild --switch --flake .#your-hostname-here
|
||||
```
|
||||
|
||||
Now dzgui will auto update together with your system.
|
||||
|
||||
## On non flake systems
|
||||
|
||||
Good luck.
|
Loading…
Add table
Add a link
Reference in a new issue