From 28cce0b54a4891b5ca13918f8b813e24676aa713 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 21 Oct 2023 17:25:18 -0600 Subject: [PATCH] Initial empty config --- flake.lock | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 30 +++++++++++++++++++++++++++ result | 1 + 3 files changed, 92 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix create mode 120000 result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..e21208f --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1697929425, + "narHash": "sha256-aO0KPrX4ln7kkx10HOm361pNygSoOYAJD8NvB66DWBg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5883b305e7e0a32938805d3646f1ebd7e11aaab0", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "master", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..45d359f --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + description = "Config generation for HAProxy"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/master"; + utils.url = "github:numtide/flake-utils"; + }; + + + outputs = { self, utils, nixpkgs }: + utils.lib.eachDefaultSystem + (system: let + pkgs = import nixpkgs { + inherit system; + }; + in { + packages.default = pkgs.stdenv.mkDerivation { + name = "haproxy-noop"; + unpackPhase = "true"; + buildPhade = "touch .noop"; + installPhase = '' + mkdir -p $out + touch $out/.noop + ''; + }; + }) // { + nixosModule = {config, lib, pkgs, ...}: { + + }; + }; +} diff --git a/result b/result new file mode 120000 index 0000000..366d10c --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/6wk9gz8ln99wad7qmdaawjbq7jg9c3j8-haproxy-noop \ No newline at end of file