aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/blog/flake.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-25 17:53:12 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-25 17:53:12 -0700
commitfa4da9546d321b7837469cfd006ee45c57c3ae29 (patch)
treec4d47129fd9515b0fe5377da235f6e4b7eb2fe26 /users/fcuny/blog/flake.nix
parentref(blog): drop the `enableGitInfo` option (diff)
downloadinfra-fa4da9546d321b7837469cfd006ee45c57c3ae29.tar.gz
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.
Diffstat (limited to 'users/fcuny/blog/flake.nix')
-rw-r--r--users/fcuny/blog/flake.nix46
1 files changed, 0 insertions, 46 deletions
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 ]; };
- });
-}