Skip to content

Instantly share code, notes, and snippets.

@pinpox
Created October 26, 2020 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinpox/cabd2d1f97ae833207fd7ddfeb88117d to your computer and use it in GitHub Desktop.
Save pinpox/cabd2d1f97ae833207fd7ddfeb88117d to your computer and use it in GitHub Desktop.
[root@nixos:/etc/nixos]# nixos-rebuild switch
building Nix...
building the system configuration...
warning: dumping very large path (> 256 MiB); this may run out of memory
[root@nixos:/etc/nixos]# cat blog.nix
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "blog";
# src = ./files/hugo-website;
src = builtins.fetchGit {
url = "ssh://gitea@git.pablo.tools/pablo/hugo-website.git";
# sha256 = "0fy43d0nhbmpf3f8v302r7bhpyd3qk2dyjr2fnvwwdx2825an6cq";
};
buildInputs = [ hugo];
buildPhase = "echo $src; exit 1";
installPhase = "cp -R public/ \$out";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment