From ba18afbaf229174866e9600231aeaf8ecb3cc2dd Mon Sep 17 00:00:00 2001 From: Pegasust Date: Sun, 5 Feb 2023 22:49:27 -0700 Subject: [PATCH] fresh --- default.nix | 12 ++++++++++++ flake.nix | 21 +++++++++++++++++++++ secrets.nix | 12 ++++++++++++ shell.nix | 11 +++++++++++ 4 files changed, 56 insertions(+) create mode 100644 default.nix create mode 100644 flake.nix create mode 100644 secrets.nix create mode 100644 shell.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..c38be65 --- /dev/null +++ b/default.nix @@ -0,0 +1,12 @@ +# We use top-level nix-flake, so default.nix is basically just a wrapper around ./flake.nix +(import + ( + let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in + fetchTarball { + url = "https://git.pegasust.com/pegasust/boost/archive/${lock.nodes.boost.locked.rev}.tar.gz"; + sha256 = lock.nodes.boost.locked.narHash; + }.flake-compat + ) + { src = ./.; } +).defaultNix + diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..828b609 --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "Start your Nix cluster here"; + nixConfig = { + accept-flake-config = true; + experimental-features = "nix-command flakes"; + # for darwin's browser + allowUnsupportedSystem = true; + }; + inputs = { + boost.url = "git+https://git.pegasust.com/pegasust/boost-nix.git"; + flake-compat.url = "github:edolstra/flake-compat"; + }; + + outputs = {boost, ...}@flakes: let + inherit (boost) lib overlays pkgs; + inherit (lib) forEachSystem stdx sys utils; + in utils.repos.mkConfigurations { + users = utils.user.mkConfigurations []; + hosts = utils.host.mkConfigurations []; + }; +} diff --git a/secrets.nix b/secrets.nix new file mode 100644 index 0000000..5f7e8e8 --- /dev/null +++ b/secrets.nix @@ -0,0 +1,12 @@ +# We use top-level nix-flake, so default.nix is basically just a wrapper around ./flake.nix +(import + ( + let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in + fetchTarball { + url = "https://git.pegasust.com/pegasust/boost/archive/${lock.nodes.boost.locked.rev}.tar.gz"; + sha256 = lock.nodes.boost.locked.narHash; + }.flake-compat + ) + { src = ./.; } +).result.secrets + diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..4c6ae8c --- /dev/null +++ b/shell.nix @@ -0,0 +1,11 @@ +(import + ( + let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in + fetchTarball { + url = "https://git.pegasust.com/pegasust/boost/archive/${lock.nodes.boost.locked.rev}.tar.gz"; + sha256 = lock.nodes.boost.locked.narHash; + }.flake-compat + ) + { src = ./.; } +).shellNix +