Skip to content

Commit

Permalink
feat: devops done the 0.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Jul 26, 2023
1 parent 51adbb7 commit bd25752
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ watch_file flakes.nix flake.lock
# shellcheck disable=SC1090
source "$(fetchurl "https://raw.githubusercontent.com/paisano-nix/direnv/main/lib" "sha256-IgQhKK7UHL1AfCUntJO2KCaIDJQotRnK2qC4Daxk+wI=")"

use envreload //users/shells/default
use envreload //dev/shells/default
6 changes: 0 additions & 6 deletions cells/tasks/dir/default.nix

This file was deleted.

3 changes: 0 additions & 3 deletions cells/tasks/job-1.nix

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
fields:
- sysmon.extend.field_1
- sysmon.extend.field_2
- sysmon.extend.field_3
- sysmon.CreateRemoteThread.SourceProcessGuid
- sysmon.CreateRemoteThread.TargetProcessGuid
- sysmon.FileCreate.ProcessGuid
Expand Down
3 changes: 3 additions & 0 deletions dev/configs/treefmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[formatter.prettier]
command = "prettier"
excludes = ["generated-*.yaml"]
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions dev/tasks/dir/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
makeScript {
name = "runScriptDir";
searchPaths.bin = [nixpkgs.hello];
entrypoint = ''
hello
'';
}
26 changes: 26 additions & 0 deletions dev/tasks/makes-test.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
makeScript {
name = "runScriptWithEnv";
searchPaths.bin = [
nixpkgs.hello
];
searchPaths.source = [
(makeEnvVars {
name = "firstEnvVarsOutput";
mapping = {
a = "1";
b = "2";
};
})
(makeEnvVars {
name = "secondEnvVarsOutput";
mapping = {
c = "3";
d = "4";
};
})
];
entrypoint = ''
hello --help
echo $a
'';
}
File renamed without changes.
9 changes: 5 additions & 4 deletions devshell.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[cellsFrom]
devshell = "/devshell"
[cellBlocks]
shellProfiles = "/shellProfiles" #toml,nix
shell = "/shell" # nix
tasks = "/tasks"
configs = "/configs"
schemas = "/tenzir/schemas"
configs = "/configs" #json,toml,yaml
schemas = "/schemas" #json,toml,yaml

[devshell]
# programs.sops.enable = true;
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@
...
} @ inputs:
(
tenzir-devops.lib.mkStd
{
inherit inputs;
cellsFrom = ./cells;
}
tenzir-devops.lib.mkStd {inherit inputs;}
)
// {
devShells = inputs.tenzir-devops.inputs.std.harvest inputs.self [["users" "shells"]];
templates = (inputs.tenzir-devops.inputs.std.harvest inputs.self ["users" "lib"]).x86_64-linux.templates;
devShells = inputs.tenzir-devops.inputs.std.harvest inputs.self [["dev" "shells"]];
templates = (inputs.tenzir-devops.inputs.std.harvest inputs.self ["dev" "lib"]).x86_64-linux.templates;
};
inputs = {
tenzir-devops.url = "github:gtrunsec/vast/devops?dir=nix/devops";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ data:
fields:
- sysmon.extend.field_1
- sysmon.extend.field_2
- sysmon.extend.field_3

0 comments on commit bd25752

Please sign in to comment.