diff --git a/.envrc b/.envrc index 7b61624..d4b93ce 100644 --- a/.envrc +++ b/.envrc @@ -1,2 +1,2 @@ -use nix +use flake layout node diff --git a/.gitignore b/.gitignore index 51c7109..7cba46d 100644 --- a/.gitignore +++ b/.gitignore @@ -155,3 +155,6 @@ dist ### FontAwesome gitignore ### fontawesome-pro-6.3.0-web + +### direnv gitignore ### +.direnv diff --git a/default.nix b/default.nix deleted file mode 100644 index 89a709c..0000000 --- a/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/994e2ef9e9c70b4dd7257f73452a94e871723685.tar.gz") {} }: - -pkgs.mkShell { - buildInputs = [ - pkgs.hugo - pkgs.nodejs - pkgs.git-crypt - ]; -} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..ba6ebd1 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1734017764, + "narHash": "sha256-msOfmyJSjAHgIygI/JD0Ae3JsDv4rT54Nlfr5t6MQMQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "64e9404f308e0f0a0d8cdd7c358f74e34802494b", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b358dbc --- /dev/null +++ b/flake.nix @@ -0,0 +1,13 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system; }; + in with pkgs; { + devShells.default = + mkShell { buildInputs = [ hugo nodejs git-crypt ]; }; + }); +}