From cced370248baa237ff9467fe9bb6469f6ec6a8c2 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Sat, 12 Oct 2024 23:21:48 -0300 Subject: [PATCH] chore: add flake --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0ce117f --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1728492678, + "narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b06f469 --- /dev/null +++ b/flake.nix @@ -0,0 +1,27 @@ +{ + description = "Soothing pastel theme to use within your projects!"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + outputs = + inputs: + let + inherit (inputs.nixpkgs) lib; + supportedSystems = [ + "aarch64-linux" + "i686-linux" + "x86_64-linux" + "aarch64-darwin" + "x86_64-darwin" + ]; + + forAllSystems = + f: lib.genAttrs supportedSystems (system: f inputs.nixpkgs.legacyPackages.${system}); + in + { + devShells = forAllSystems (pkgs: { + default = import ./shell.nix { inherit pkgs; }; + }); + palette = lib.importJSON ./palette.json; + }; +}