From a2367d88db3158d4c5ed3af1ce0323431dcc9af7 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 19 Jul 2022 02:44:22 -0500 Subject: [PATCH] Flake init --- .envrc | 1 + .gitignore | 1 + flake.lock | 40 ++++++++++++++++++++++++++++++++++++++++ flake.nix | 8 ++++++++ 4 files changed, 50 insertions(+) create mode 100644 .envrc create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 017d960..51e8812 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /resources .hugo_build.lock +.direnv diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..ce295e1 --- /dev/null +++ b/flake.lock @@ -0,0 +1,40 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1656928814, + "narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249", + "type": "github" + }, + "original": { + "id": "flake-utils", + "type": "indirect" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1657533762, + "narHash": "sha256-/cxTFSMmpAb8tBp1yVga1fj+i8LB9aAxnMjYFpRMuVs=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "38860c9e91cb00f4d8cd19c7b4e36c45680c89b5", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e5fe8f4 --- /dev/null +++ b/flake.nix @@ -0,0 +1,8 @@ +{ + description = "A very basic flake"; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system; }; + in { devShell = pkgs.mkShell { packages = with pkgs; [ hugo ]; }; }); +}