add packages
This commit is contained in:
parent
49142f0228
commit
2327135fd8
1 changed files with 11 additions and 7 deletions
18
flake.nix
18
flake.nix
|
@ -45,6 +45,12 @@
|
||||||
# Define args each module gets access to (access to hosts is useful for DNS/DHCP)
|
# Define args each module gets access to (access to hosts is useful for DNS/DHCP)
|
||||||
specialArgs = { inherit hosts flat_hosts inputs; };
|
specialArgs = { inherit hosts flat_hosts inputs; };
|
||||||
pkgs = serokell-nix.lib.pkgsWith nixpkgs.legacyPackages.${system} [ vault-secrets.overlay ];
|
pkgs = serokell-nix.lib.pkgsWith nixpkgs.legacyPackages.${system} [ vault-secrets.overlay ];
|
||||||
|
|
||||||
|
# Script to apply local colmena deployments
|
||||||
|
apply-local = pkgs.writeScriptBin "apply-local" ''
|
||||||
|
#!${pkgs.stdenv.shell}
|
||||||
|
"${colmena.packages.x86_64-linux.colmena}"/bin/colmena apply-local --sudo --node "$(cat /proc/sys/kernel/hostname).$(cat /proc/sys/kernel/domainname)"
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Make the nixosConfigurations, mostly for vault-secrets
|
# Make the nixosConfigurations, mostly for vault-secrets
|
||||||
|
@ -66,18 +72,16 @@
|
||||||
}
|
}
|
||||||
nixHosts;
|
nixHosts;
|
||||||
|
|
||||||
|
packages.x86_64-linux.default = colmena.packages.x86_64-linux.colmena;
|
||||||
|
packages.x86_64-linux.apply-local = apply-local;
|
||||||
|
|
||||||
# Use by running `nix develop`
|
# Use by running `nix develop`
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
devShells.${system}.default = pkgs.mkShell {
|
||||||
VAULT_ADDR = "http://vault.olympus:8200/";
|
VAULT_ADDR = "http://vault.olympus:8200/";
|
||||||
# This only support bash so just execute zsh in bash as a workaround :/
|
# This only support bash so just execute zsh in bash as a workaround :/
|
||||||
shellHook = "zsh; exit $?";
|
shellHook = "zsh; exit $?";
|
||||||
buildInputs = with pkgs; let
|
buildInputs = with pkgs; [
|
||||||
apply-local = pkgs.writeScriptBin "apply-local" ''
|
apply-local
|
||||||
#!${pkgs.stdenv.shell}
|
|
||||||
"${colmena.packages.x86_64-linux.colmena}"/bin/colmena apply-local --sudo --node "$(cat /proc/sys/kernel/hostname).$(cat /proc/sys/kernel/domainname)"
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
[
|
|
||||||
colmena.packages.x86_64-linux.colmena
|
colmena.packages.x86_64-linux.colmena
|
||||||
fluxcd
|
fluxcd
|
||||||
k9s
|
k9s
|
||||||
|
|
Loading…
Add table
Reference in a new issue