diff options
| author | Stellar Rounin <stellarrounin@gmail.com> | 2026-09-15 02:25:29 +0000 |
|---|---|---|
| committer | Stellar Rounin <stellarrounin@gmail.com> | 2026-09-15 02:25:29 +0000 |
| commit | 0d9a1e806ec7acc31725480e658000cc9e2a3a5b (patch) | |
| tree | 72d850cea4355a1d54f77a34f19e22c2553eb8d5 | |
| parent | 30917f3291a9e78d5d1ff995961ade14a47c3ef8 (diff) | |
| download | site-0d9a1e806ec7acc31725480e658000cc9e2a3a5b.tar.xz site-0d9a1e806ec7acc31725480e658000cc9e2a3a5b.zip | |
feat
| -rw-r--r-- | devenv.lock | 65 | ||||
| -rw-r--r-- | devenv.nix | 50 |
2 files changed, 78 insertions, 37 deletions
diff --git a/devenv.lock b/devenv.lock new file mode 100644 index 0000000..cfcfb0b --- /dev/null +++ b/devenv.lock @@ -0,0 +1,65 @@ +{ + "nodes": { + "devenv": { + "locked": { + "dir": "src/modules", + "lastModified": 1789152246, + "narHash": "sha256-8ESHEGygXS5lmDepm5cMbmVd8DjcwgwzsmjHc9ffY1c=", + "owner": "cachix", + "repo": "devenv", + "rev": "6e323832a55097670dbd8eed04b1e63efc841dfa", + "type": "github" + }, + "original": { + "dir": "src/modules", + "owner": "cachix", + "repo": "devenv", + "type": "github" + } + }, + "nixpkgs": { + "inputs": { + "nixpkgs-src": "nixpkgs-src" + }, + "locked": { + "lastModified": 1787753358, + "narHash": "sha256-Tl77VbWyAKrOfRNQhL6JbQtb/MLzbYa/1RG1gWWfICk=", + "owner": "cachix", + "repo": "devenv-nixpkgs", + "rev": "256551e45f6303e142ab4a98be1bf243feb77dc0", + "type": "github" + }, + "original": { + "owner": "cachix", + "ref": "rolling", + "repo": "devenv-nixpkgs", + "type": "github" + } + }, + "nixpkgs-src": { + "flake": false, + "locked": { + "lastModified": 1787394516, + "narHash": "sha256-pRGOQSClnXNI2iLUG6DYpsGvYcuw0drOutVZFTJNw90=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c8f90650c15282fa8656a041bfbbd2403997a9a7", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "devenv": "devenv", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +}
\ No newline at end of file @@ -1,46 +1,22 @@ -{ pkgs, lib, config, inputs, ... }: +{ pkgs, ... }: { - # https://devenv.sh/basics/ - env.GREET = "devenv"; + packages = [ + pkgs.hugo + pkgs.git + ]; - # https://devenv.sh/packages/ - packages = [ pkgs.git ]; - - # https://devenv.sh/languages/ - # languages.rust.enable = true; - - # https://devenv.sh/processes/ - # processes.dev.exec = "${lib.getExe pkgs.watchexec} -n -- ls -la"; - - # https://devenv.sh/services/ - # services.postgres.enable = true; - - # https://devenv.sh/scripts/ - scripts.hello.exec = '' - echo hello from $GREET + scripts.dev.exec = '' + hugo server --buildDrafts --buildFuture --navigateToChanged ''; - # https://devenv.sh/basics/ - enterShell = '' - hello # Run scripts directly - git --version # Use packages + scripts.build.exec = '' + rm -rf public + hugo build ''; - # https://devenv.sh/tasks/ - # tasks = { - # "myproj:setup".exec = "mytool build"; - # "devenv:enterShell".after = [ "myproj:setup" ]; - # }; - - # https://devenv.sh/tests/ - enterTest = '' - echo "Running tests" - git --version | grep --color=auto "${pkgs.git.version}" + enterShell = '' + echo "🚀 Hugo environment" + echo "Run 'dev' to start Hugo" ''; - - # https://devenv.sh/git-hooks/ - # git-hooks.hooks.shellcheck.enable = true; - - # See full reference at https://devenv.sh/reference/options/ } |
