Pegasust 2023-02-05 22:49:27 -07:00
parent e76eba2e7a
commit ba18afbaf2
4 changed files with 56 additions and 0 deletions

12
default.nix Normal file
View File

@ -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

21
flake.nix Normal file
View File

@ -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 [];
};
}

12
secrets.nix Normal file
View File

@ -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

11
shell.nix Normal file
View File

@ -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