-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
2,217 additions
and
2,308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
build | ||
result | ||
public | ||
resources | ||
node_modules | ||
hugo_stats.json | ||
|
||
*.crt | ||
*.key | ||
*.key | ||
|
||
.direnv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{ | ||
"css.validate": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"eslint.format.enable": true, | ||
"eslint.rules.customizations": [ | ||
{ | ||
"rule": "*", | ||
"severity": "warn" | ||
} | ||
], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"eslint.format.enable": true, | ||
"css.validate": false, | ||
"stylelint.configFile": ".stylelintrc.yaml", | ||
"stylelint.validate": ["css"], | ||
"yaml.schemaStore.enable": false | ||
"[nix]": { | ||
"editor.defaultFormatter": "jnoortheen.nix-ide" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
description = "modern-hugo-resume"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
# HACK: enable build argument with https://github.com/NixOS/nix/issues/5663#issuecomment-2010521981 | ||
baseURL.url = "file+file:///dev/null"; | ||
baseURL.flake = false; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils, baseURL }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
hugo = pkgs.hugo; | ||
nodejs = pkgs.nodejs_22; | ||
pnpm = pkgs.pnpm; | ||
nativeBuildInputs = [ nodejs hugo pnpm ]; | ||
in | ||
{ | ||
package = pkgs.stdenv.mkDerivation (finalAttrs: { | ||
pname = "modern-hugo-resume"; | ||
name = finalAttrs.pname; | ||
|
||
src = ./.; | ||
|
||
nativeBuildInputs = nativeBuildInputs // [ pnpm.configHook ]; | ||
|
||
pnpmDeps = pnpm.fetchDeps { | ||
inherit (finalAttrs) pname; | ||
src = [ ./package.json ./pnpm-lock.yaml ]; | ||
hash = "sha256-oMBdfctFQ4BP7wNvVwfNzi5Gbzqc3OK4sN3VoUiJwIE="; | ||
}; | ||
|
||
postBuild = '' | ||
pnpm run build --baseURL=${builtins.readFile baseURL} | ||
''; | ||
|
||
installPhase = '' | ||
cp -r build $out | ||
''; | ||
}); | ||
|
||
devShell = pkgs.mkShell { inherit nativeBuildInputs; }; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.