-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
b03af3f
commit c81e884
Showing
3 changed files
with
104 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,45 @@ | ||
{ | ||
description = "Description for the project"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
devenv-k8s.url = "github:LCOGT/devenv-k8s"; | ||
}; | ||
|
||
outputs = inputs@{ flake-parts, ... }: | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
imports = [ | ||
inputs.devenv-k8s.flakeModules.default | ||
]; | ||
|
||
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; | ||
|
||
perSystem = { config, self', inputs', pkgs, system, ... }: { | ||
# Per-system attributes can be defined here. The self' and inputs' | ||
# module parameters provide easy access to attributes of the same | ||
# system. | ||
|
||
# https://devenv.sh/basics/ | ||
# Enter using `nix develop --impure` | ||
devenv.shells.default = { | ||
# https://devenv.sh/packages/ | ||
packages = [ | ||
|
||
]; | ||
|
||
# https://devenv.sh/reference/options/#entershell | ||
enterShell = '' | ||
echo Hello | ||
''; | ||
}; | ||
}; | ||
|
||
flake = { | ||
# The usual flake attributes can be defined here, including system- | ||
# agnostic ones like nixosModule and system-enumerating ones, although | ||
# those are more easily expressed in perSystem. | ||
|
||
}; | ||
}; | ||
} |
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,27 @@ | ||
{ | ||
description = "GitOps deploy repo"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
devenv-k8s.url = "github:LCOGT/devenv-k8s"; | ||
}; | ||
|
||
outputs = inputs@{ flake-parts, ... }: | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
imports = [ | ||
inputs.devenv-k8s.flakeModules.default | ||
]; | ||
|
||
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; | ||
|
||
perSystem = { lib, config, ... }: { | ||
|
||
# Enable these as you see fit | ||
config.devenv.shells.default = { | ||
pre-commit.hooks.kustomize-build-staging.enable = lib.mkForce false; | ||
pre-commit.hooks.kustomize-build-prod.enable = lib.mkForce false; | ||
}; | ||
}; | ||
}; | ||
} |