Skip to content

Commit

Permalink
docs: add nixos installation
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 7, 2024
1 parent c9f1e96 commit d72b974
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions site/docs/getting_started/installation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Welcome to Dooit!

Thank you for installing dooit! I hope you enjoy it. \
Feel free to open any feature requests if you have great ideas

Dooit can be installed via various package managers

## PyPI
Expand All @@ -14,6 +19,62 @@ yay -S dooit-bin dooit-extras

## NixOS

### Flakes :snowflake:

```nix{25,7-8,}
# flake.nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # this can be stable, but if it is do not make hyprpanel follow it
dooit.url = "github:kraanzu/dooit/develop";
dooit-extras.url = "github:dooit-org/dooit-extras";
};
# ...
outputs = inputs @ {
nixpkgs,
...
}: let
pkgs = import nixpkgs {};
system = "x86_64-linux"; # change to whatever your system should be
in {
nixosConfigurations."${host}" = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit system inputs pkgs;
};
modules = [
# ...
./dooit.nix
];
};
};
}
```

```nix
# dooit.nix
{
inputs,
pkgs,
...
}: let
mydooit = pkgs.dooit.override {
extraPackages = [
pkgs.dooit-extras
];
};
in {
# this overlay allows you to use dooit from pkgs.dooit
nixpkgs.overlays = [inputs.dooit.overlay inputs.dooit-extras.overlay];
environment.systemPackages = [
mydooit
];
}
```

> Thanks to [`Hyprpanel`](https://hyprpanel.com/) from whom I stole the format for the flake

0 comments on commit d72b974

Please sign in to comment.