Skip to content

Commit

Permalink
chore: updat omnibus
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Dec 24, 2023
1 parent 126a7a2 commit fe91768
Show file tree
Hide file tree
Showing 19 changed files with 178 additions and 340 deletions.
230 changes: 115 additions & 115 deletions compare/nginx.yml

Large diffs are not rendered by default.

192 changes: 4 additions & 188 deletions flake.lock

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

10 changes: 7 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@

inputs = {
omnibus.url = "github:gtrunsec/omnibus";
omnibus.flake = false;
};

outputs =
{self, omnibus}@inputs:
{ self, omnibus }@inputs:
let
src = import ./nix/src/__init.nix {inherit inputs omnibus;};
inherit (omnibus.lib) mapPopsExports;
src = import ./nix/src/__init.nix {
inputs = inputs // {
omnibus = import inputs.omnibus;
};
};
in
src.flakeOutputs
// {
Expand Down
2 changes: 1 addition & 1 deletion nix/lock/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
ansible-collection-hardening.flake = false;
};

outputs = _: {};
outputs = _: { };
}
6 changes: 3 additions & 3 deletions nix/src/__init.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{omnibus, inputs}:
{ inputs }:
let
inherit (inputs.omnibus.inputs.flops.inputs.nixlib) lib;
eachSystem = lib.genAttrs [
Expand All @@ -7,10 +7,10 @@ let
"aarch64-darwin"
];
in
omnibus.load {
inputs.omnibus.load {
src = ./.;
inputs = {
projectDir = ../..;
inherit inputs eachSystem;
inherit eachSystem;
};
}
4 changes: 2 additions & 2 deletions nix/src/flakeOutputs.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{root, lib}:
{ root, lib }:
let
units = lib.mapPopsExports root.pops;
units = lib.omnibus.mapPopsExports root.pops;
in
{
inherit (units) nixosProfiles;
Expand Down
2 changes: 1 addition & 1 deletion nix/src/pops/lego.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
}:
omnibus.pops.load {
src = projectDir + /units/lego;
inputs = {};
inputs = { };
}
4 changes: 2 additions & 2 deletions nix/std/cells/repo/nixago.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{inputs, cell}:
{ inputs, cell }:
with inputs.std.inputs.dmerge;
let
cfg = {
Expand All @@ -18,7 +18,7 @@ in
default = conform.default custom;
custom = {
data = {
commit.conventional.scopes = append [".*."];
commit.conventional.scopes = append [ ".*." ];
};
};
};
Expand Down
4 changes: 2 additions & 2 deletions nix/std/cells/repo/pops.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{inputs, cell}:
{ inputs, cell }:
let
inherit (inputs) nixpkgs;
inputs' = (inputs.omnibus.pops.flake.setSystem nixpkgs.system).inputs;
Expand All @@ -15,7 +15,7 @@ in
POP.extendPop flops.haumea.pops.exporter (
_self: _super: {
exports = rec {
inherit (inputs.omnibus.lib.mapPopsExports pops) self;
inherit (inputs.omnibus.lib.omnibus.mapPopsExports pops) self;
pops.self =
(self.layouts.default.addLoadExtender {
load.inputs = {
Expand Down
6 changes: 3 additions & 3 deletions nix/std/cells/repo/shells/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{inputs, cell}:
{ inputs, cell }:
let
l = nixpkgs.lib // builtins;
inherit (inputs) nixpkgs std;
in
l.mapAttrs (_: std.lib.dev.mkShell) {
default =
{...}:
{ ... }:
{
name = "LEGO Hardening";
imports = [cell.pops.devshellProfiles.exports.default.nickel];
imports = [ cell.pops.devshellProfiles.exports.default.nickel ];

packages = [
nixpkgs.vagrant
Expand Down
6 changes: 3 additions & 3 deletions nix/std/cells/repo/tasks/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{inputs, cell}:
{ inputs, cell }:
let
inherit (inputs.std-ext.writers.lib) writeShellApplication;
inherit (inputs) self nixpkgs std;
Expand All @@ -8,11 +8,11 @@ in
let
org-roam-book =
inputs.org-roam-book-template.packages.${nixpkgs.system}.default.override
{org = "${(std.incl self [(self + /docs/org)])}/docs/org";};
{ org = "${(std.incl self [ (self + /docs/org) ])}/docs/org"; };
in
writeShellApplication {
name = "mkdoc";
runtimeInputs = [nixpkgs.hugo];
runtimeInputs = [ nixpkgs.hugo ];
text = ''
rsync -avzh ${org-roam-book}/* docs/publish
cd docs/publish && cp ../config.toml .
Expand Down
6 changes: 3 additions & 3 deletions nix/std/flake.lock

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

3 changes: 2 additions & 1 deletion nix/std/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
std.follows = "omnibusStd/std";
};
outputs =
{std, call-flake, ...}@inputs:
{ std, call-flake, ... }@inputs:
std.growOn
{
inputs =
Expand All @@ -28,6 +28,7 @@
// (call-flake ../..).inputs
// {
lego-hardening = call-flake ../..;
omnibus = import (call-flake ../..).inputs.omnibus;
};
cellsFrom = ./cells;

Expand Down
4 changes: 2 additions & 2 deletions units/apparmor/_temp.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_:
{pkgs}:
{ pkgs }:
{
bin =
{
Expand All @@ -14,7 +14,7 @@ _:
# include <abstractions/base>
# include <abstractions/nameservice>
# include <abstractions/ssl_certs>
include "${pkgs.apparmorRulesFromClosure {inherit name;} package}"
include "${pkgs.apparmorRulesFromClosure { inherit name; } package}"
r ${package}/bin/${name},
}
${extraRules}
Expand Down
2 changes: 1 addition & 1 deletion units/apparmor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pkgs,
}:
let
temp = super.temp {inherit pkgs;};
temp = super.temp { inherit pkgs; };
binary_example = temp.bin {
name = "binary_example";
package = pkgs.binary_example;
Expand Down
Loading

0 comments on commit fe91768

Please sign in to comment.