From fa4da9546d321b7837469cfd006ee45c57c3ae29 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 25 May 2022 17:53:12 -0700 Subject: ref(blog): drop the flake configuration There's no need to have multiple `flake.nix` in the repository. Make the blog part of the flake configuration at the root level of the repository, delete the one in the blog, and update the documentation. --- users/fcuny/blog/flake.nix | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 users/fcuny/blog/flake.nix (limited to 'users/fcuny/blog/flake.nix') diff --git a/users/fcuny/blog/flake.nix b/users/fcuny/blog/flake.nix deleted file mode 100644 index 79e6953..0000000 --- a/users/fcuny/blog/flake.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ - description = "Franck Cuny's personal website."; - - inputs = { - nixpkgs.url = "github:nixos/nixpkgs"; - flake-utils.url = "github:numtide/flake-utils"; - }; - - outputs = { self, nixpkgs, flake-utils }: - flake-utils.lib.eachDefaultSystem (system: - let pkgs = nixpkgs.legacyPackages.${system}; - in { - defaultPackage = with pkgs; - stdenv.mkDerivation { - pname = "fcuny.net"; - version = self.lastModifiedDate; - src = ./.; - buildInputs = [ hugo git ]; - buildPhase = '' - mkdir -p $out - hugo --minify --destination $out - ''; - dontInstall = true; - }; - - defaultApp = pkgs.writers.writeBashBin "run-hugo" '' - set -e - set -o pipefail - export PATH=${pkgs.lib.makeBinPath [ pkgs.hugo pkgs.git ]} - hugo server -D - ''; - - apps = { - deploy = pkgs.pkgs.writeShellScriptBin "run-deploy" '' - set -euxo pipefail - export PATH=${ - pkgs.lib.makeBinPath [ pkgs.hugo pkgs.git pkgs.jq pkgs.flyctl ] - }:$PATH - bash ./scripts/deploy.sh - ''; - }; - - devShell = - pkgs.mkShell { buildInputs = with pkgs; [ hugo flyctl git jq ]; }; - }); -} -- cgit v1.2.3