idimitrov.dev/flake.nix

54 lines
1.3 KiB
Nix
Raw Normal View History

2023-10-27 17:12:20 +02:00
{
inputs = {
2024-07-24 20:24:59 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-11-15 13:25:12 +01:00
ide = {
2023-11-18 07:49:38 +01:00
url = "github:ivandimitrov8080/flake-ide";
2023-11-15 13:25:12 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-27 17:12:20 +02:00
};
2024-05-22 15:48:54 +02:00
outputs = { nixpkgs, ide, ... }:
2023-10-27 17:12:20 +02:00
let
system = "x86_64-linux";
2024-05-22 15:48:54 +02:00
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
2024-07-24 20:24:59 +02:00
nvim = ide.nvim.${system}.standalone.default {
2024-05-22 15:48:54 +02:00
plugins = {
lsp.servers = {
html.enable = true;
tsserver.enable = true;
jsonls.enable = true;
tailwindcss.enable = true;
cssls.enable = true;
};
};
};
})
];
2023-11-15 13:25:12 +01:00
};
2023-10-27 17:12:20 +02:00
buildInputs = with pkgs; [
coreutils-full
2024-07-24 20:24:59 +02:00
nodejs
2023-11-15 13:25:12 +01:00
nvim
2024-07-31 17:34:13 +02:00
nodePackages_latest.prettier
2023-10-27 17:12:20 +02:00
];
in
{
devShell.${system} = pkgs.mkShell {
inherit buildInputs;
};
2024-07-24 20:59:03 +02:00
packages.${system}.default = pkgs.buildNpmPackage {
Squashed commit of the following: commit f97a703e0da24e9c98caad7c48cb5882471abdb1 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 15 06:42:21 2023 +0200 fix build error commit dc759d9e3db46cb77cad34e72472c08553211c1c Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Thu Dec 14 18:05:53 2023 +0200 birthday easter egg maybe not working at all but whatever commit 60dbe3ffe9da67abdf3f1dc2bb3f5c0c5bf86643 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 8 17:47:33 2023 +0200 newlines commit 1a7230c4d784077e4156fba4cb017cdc24391e42 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 8 17:46:50 2023 +0200 links commit e1b9e5b00890f9b35e7052a8b5b12b711bfe0911 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 1 15:49:52 2023 +0200 add public key and some svg shadow commit b5dfb5bfab7d4fdd3bbbfe6457a776533f69730c Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 16:32:17 2023 +0200 make it lighter commit b065b62975af24de7fd89717ea55ea67984c1b0e Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:58:10 2023 +0200 formatting commit bb5bd2e5f16b637680075f89e85b0f6e99851734 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:57:22 2023 +0200 metadata and some optimizations commit 3d1fd8a2fa4882bbfefcf19d47df18b44d3962f9 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:38:28 2023 +0200 sitemap and robots commit 327f4b7f43b6936f4b0f9dce595837faeb1ac9bf Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 10:06:47 2023 +0200 flake update commit 16e08c84c691f8bc69b5e56a2efe37d384be943b Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Tue Nov 28 19:11:41 2023 +0200 flake update commit a7eb0513e6fb22eacaa365f37ad4482272e9bc4d Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sun Nov 26 12:59:41 2023 +0200 set build inputs to only node commit 59776102f521e20dbede3edb022305d26e69c539 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sun Nov 26 12:55:12 2023 +0200 making the site run on nixos
2023-12-17 10:35:42 +01:00
pname = "idimitrov.dev";
2024-07-24 20:59:03 +02:00
version = "0.1.1";
Squashed commit of the following: commit f97a703e0da24e9c98caad7c48cb5882471abdb1 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 15 06:42:21 2023 +0200 fix build error commit dc759d9e3db46cb77cad34e72472c08553211c1c Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Thu Dec 14 18:05:53 2023 +0200 birthday easter egg maybe not working at all but whatever commit 60dbe3ffe9da67abdf3f1dc2bb3f5c0c5bf86643 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 8 17:47:33 2023 +0200 newlines commit 1a7230c4d784077e4156fba4cb017cdc24391e42 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 8 17:46:50 2023 +0200 links commit e1b9e5b00890f9b35e7052a8b5b12b711bfe0911 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 1 15:49:52 2023 +0200 add public key and some svg shadow commit b5dfb5bfab7d4fdd3bbbfe6457a776533f69730c Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 16:32:17 2023 +0200 make it lighter commit b065b62975af24de7fd89717ea55ea67984c1b0e Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:58:10 2023 +0200 formatting commit bb5bd2e5f16b637680075f89e85b0f6e99851734 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:57:22 2023 +0200 metadata and some optimizations commit 3d1fd8a2fa4882bbfefcf19d47df18b44d3962f9 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:38:28 2023 +0200 sitemap and robots commit 327f4b7f43b6936f4b0f9dce595837faeb1ac9bf Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 10:06:47 2023 +0200 flake update commit 16e08c84c691f8bc69b5e56a2efe37d384be943b Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Tue Nov 28 19:11:41 2023 +0200 flake update commit a7eb0513e6fb22eacaa365f37ad4482272e9bc4d Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sun Nov 26 12:59:41 2023 +0200 set build inputs to only node commit 59776102f521e20dbede3edb022305d26e69c539 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sun Nov 26 12:55:12 2023 +0200 making the site run on nixos
2023-12-17 10:35:42 +01:00
src = ./.;
2024-07-24 20:24:59 +02:00
npmDepsHash = "sha256-+GgP+cilcphMZxns/EM2TTRDuQi8RE1PkxsDG3gXZEQ=";
Squashed commit of the following: commit f97a703e0da24e9c98caad7c48cb5882471abdb1 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 15 06:42:21 2023 +0200 fix build error commit dc759d9e3db46cb77cad34e72472c08553211c1c Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Thu Dec 14 18:05:53 2023 +0200 birthday easter egg maybe not working at all but whatever commit 60dbe3ffe9da67abdf3f1dc2bb3f5c0c5bf86643 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 8 17:47:33 2023 +0200 newlines commit 1a7230c4d784077e4156fba4cb017cdc24391e42 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 8 17:46:50 2023 +0200 links commit e1b9e5b00890f9b35e7052a8b5b12b711bfe0911 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 1 15:49:52 2023 +0200 add public key and some svg shadow commit b5dfb5bfab7d4fdd3bbbfe6457a776533f69730c Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 16:32:17 2023 +0200 make it lighter commit b065b62975af24de7fd89717ea55ea67984c1b0e Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:58:10 2023 +0200 formatting commit bb5bd2e5f16b637680075f89e85b0f6e99851734 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:57:22 2023 +0200 metadata and some optimizations commit 3d1fd8a2fa4882bbfefcf19d47df18b44d3962f9 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:38:28 2023 +0200 sitemap and robots commit 327f4b7f43b6936f4b0f9dce595837faeb1ac9bf Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 10:06:47 2023 +0200 flake update commit 16e08c84c691f8bc69b5e56a2efe37d384be943b Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Tue Nov 28 19:11:41 2023 +0200 flake update commit a7eb0513e6fb22eacaa365f37ad4482272e9bc4d Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sun Nov 26 12:59:41 2023 +0200 set build inputs to only node commit 59776102f521e20dbede3edb022305d26e69c539 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sun Nov 26 12:55:12 2023 +0200 making the site run on nixos
2023-12-17 10:35:42 +01:00
postInstall = ''
rm -rf $out/lib
2024-07-24 20:38:13 +02:00
cp -r ./out/* $out/
Squashed commit of the following: commit f97a703e0da24e9c98caad7c48cb5882471abdb1 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 15 06:42:21 2023 +0200 fix build error commit dc759d9e3db46cb77cad34e72472c08553211c1c Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Thu Dec 14 18:05:53 2023 +0200 birthday easter egg maybe not working at all but whatever commit 60dbe3ffe9da67abdf3f1dc2bb3f5c0c5bf86643 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 8 17:47:33 2023 +0200 newlines commit 1a7230c4d784077e4156fba4cb017cdc24391e42 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 8 17:46:50 2023 +0200 links commit e1b9e5b00890f9b35e7052a8b5b12b711bfe0911 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Fri Dec 1 15:49:52 2023 +0200 add public key and some svg shadow commit b5dfb5bfab7d4fdd3bbbfe6457a776533f69730c Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 16:32:17 2023 +0200 make it lighter commit b065b62975af24de7fd89717ea55ea67984c1b0e Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:58:10 2023 +0200 formatting commit bb5bd2e5f16b637680075f89e85b0f6e99851734 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:57:22 2023 +0200 metadata and some optimizations commit 3d1fd8a2fa4882bbfefcf19d47df18b44d3962f9 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 15:38:28 2023 +0200 sitemap and robots commit 327f4b7f43b6936f4b0f9dce595837faeb1ac9bf Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Wed Nov 29 10:06:47 2023 +0200 flake update commit 16e08c84c691f8bc69b5e56a2efe37d384be943b Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Tue Nov 28 19:11:41 2023 +0200 flake update commit a7eb0513e6fb22eacaa365f37ad4482272e9bc4d Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sun Nov 26 12:59:41 2023 +0200 set build inputs to only node commit 59776102f521e20dbede3edb022305d26e69c539 Author: Ivan Dimitrov <ivan@idimitrov.dev> Date: Sun Nov 26 12:55:12 2023 +0200 making the site run on nixos
2023-12-17 10:35:42 +01:00
'';
};
2023-10-27 17:12:20 +02:00
};
}