-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pacman99
committed
Mar 23, 2021
1 parent
6ab0d6e
commit 9e15491
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Use mkDevos | ||
You can also use devos as a flake input and get the advantage of using | ||
nix flakes to sync with upstream changes in devos. | ||
|
||
To do this you will need the template and nix unstable. Edit your flake.nix to | ||
add devos as an input: | ||
```nix | ||
inputs = { | ||
... | ||
devos.url = "github:divnix/devos"; | ||
}; | ||
``` | ||
then replace the outputs section with this: | ||
```nix | ||
outputs = { self, devos, ... }: devos.lib.mkDevos { inherit self; }; | ||
``` | ||
|
||
Now you can update devos as you would any other flake input: | ||
```sh | ||
nix flake update --update-input devos | ||
``` | ||
|
||
> ##### Notes: | ||
> - All inputs used in devos must also be added to your flake, due to an | ||
> [issue](nixos/nix#4641) with nix. | ||
> - Optionally, you can safely delete [lib](../../lib) and [tests](../../tests) and | ||
> the [core profile](../../profiles/core) | ||
> - You can append `/community` to the `devos.url` to get access to community modules | ||
> which can be added in [extern](../../extern). | ||
> - To use community profiles, you will have to copy them to your tree | ||
> - If you use this method, you will no longer be able to edit devos internals. |