Add build-configs from its derivation

It currently uses a local version of `build-configs`. I need to look
into how to get it to with Nix and a private GitHub repository.
This commit is contained in:
Oliver Davies 2024-05-22 09:00:00 +01:00
parent 395e92054e
commit c8cc72b1ac
4 changed files with 25 additions and 6 deletions

View file

@ -1,5 +1,22 @@
{ {
"nodes": { "nodes": {
"build-configs": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1716365597,
"narHash": "sha256-hVI9QY4tLbXmci1MERp8CEduJ3xfeTT3ZxKnuMCJP3E=",
"path": "/home/opdavies/Code/personal/build-configs",
"type": "path"
},
"original": {
"path": "/home/opdavies/Code/personal/build-configs",
"type": "path"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -75,6 +92,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"build-configs": "build-configs",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"opdavies-nvim": "opdavies-nvim" "opdavies-nvim": "opdavies-nvim"

View file

@ -8,6 +8,11 @@
opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs"; opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs";
opdavies-nvim.url = "github:opdavies/opdavies.nvim"; opdavies-nvim.url = "github:opdavies/opdavies.nvim";
# opdavies-nvim.url = "path:/home/opdavies/Code/personal/opdavies.nvim"; # opdavies-nvim.url = "path:/home/opdavies/Code/personal/opdavies.nvim";
build-configs.inputs.nixpkgs.follows = "nixpkgs";
build-configs.url = "path:/home/opdavies/Code/personal/build-configs";
# TODO: how to do this with a private GitHub repository?
# build-configs.url = "github:OliverDaviesLtd/build-configs";
}; };
outputs = { nixpkgs, self, ... }@inputs: outputs = { nixpkgs, self, ... }@inputs:

View file

@ -3,6 +3,8 @@ let
php = pkgs.php82; php = pkgs.php82;
phpPackages = pkgs.php82Packages; phpPackages = pkgs.php82Packages;
in with pkgs; [ in with pkgs; [
inputs.build-configs.packages.${pkgs.system}.default
awscli2 awscli2
bitwarden-cli bitwarden-cli
bottom bottom

View file

@ -266,12 +266,6 @@
alias rdci="run drush config:import -y" alias rdci="run drush config:import -y"
alias rduli="run drush uli" alias rduli="run drush uli"
# Build Configs.
ialias build-configs="nix shell nixpkgs#php82 --command ~/Code/github.com/OliverDaviesLtd/build-configs/main/bin/build-configs app:generate"
ialias build-configs-update-all="~/Code/github.com/OliverDaviesLtd/build-configs-updater/update.sh"
alias bc=build-configs
alias bcu=build-configs-update-all
alias -g A1="| awk '{print \$1}'" alias -g A1="| awk '{print \$1}'"
alias -g Fj='| jq .' alias -g Fj='| jq .'
alias -g Fy='| yq .' alias -g Fy='| yq .'