Configure registry for customer projects

I created a private repository within `registries/customer-projects`.
This holds flakes.
The folder is registered as registry.

That allows to run the following from within a customer project:

    nix run cp\#reuter-phpstan

In order to execute the customer specific application from flake.
This commit is contained in:
Daniel Siepmann 2022-02-11 10:03:01 +01:00
parent e17ea91263
commit a62943d0bb
Signed by: Daniel Siepmann
GPG Key ID: 33D6629915560EF4
5 changed files with 19 additions and 7 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/registries/customer-projects/

View File

@ -114,7 +114,8 @@
"phpactor/phpactor.yml".source = ./home/files/phpactor.yml;
"tig/config".source = ./home/files/tig;
"nix/nix.conf".source = ./home/files/nix.conf;
"nix/nix.conf".source = ./home/files/nix/nix.conf;
"nix/registry.json".source = ./home/files/nix/registry.json;
"cmus/smyckblue.theme".source = ./home/files/cmus/smyckblue.theme;
"cmus/rc".source = ./home/files/cmus/rc;

View File

@ -0,0 +1,15 @@
{
"flakes": [
{
"from": {
"id": "cp",
"type": "indirect"
},
"to": {
"path": "/home/daniels/.config/nixpkgs/registries/customer-projects",
"type": "path"
}
}
],
"version": 2
}

View File

@ -60,7 +60,7 @@ It has the following sub folder:
`flakes/`
Holds structure with specific flakes.
Those should provide libraries and template for development projects.
Those should provide libraries and template.
Update
------
@ -102,11 +102,6 @@ Todos
* Migrate firefox (with geckodriver), thunderbird, ungoogled chromium
* Begin migrating local development to execute php. On a per customer project.
* `flake.nix` and `flake.lock` need to be checked into a repo … How to handle that if customer doesn't want the file?
Maybe symlinks will work, so I've a dedicated repo with the project flakes and link them into project repos?
* Migrate home manager to use flake for better rollback support if update breaks something.
* Maybe PR upstream: `./home/modules/programs/languagetool.nix`.