Created
March 22, 2024 18:42
-
-
Save normanjaeckel/2d16e8626f5e08cd95e3fa45cb3c357e to your computer and use it in GitHub Desktop.
Devenv default setup (v1.0.1)
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
{ | |
"nodes": { | |
"devenv": { | |
"locked": { | |
"dir": "src/modules", | |
"lastModified": 1711122363, | |
"owner": "cachix", | |
"repo": "devenv", | |
"rev": "63c7109f20b5ded0bc07f95ece9518bbb7fdea5b", | |
"treeHash": "1444c7e80cbca424d1e878a0f77c44195b2c6f60", | |
"type": "github" | |
}, | |
"original": { | |
"dir": "src/modules", | |
"owner": "cachix", | |
"repo": "devenv", | |
"type": "github" | |
} | |
}, | |
"flake-compat": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1696426674, | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", | |
"treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"type": "github" | |
} | |
}, | |
"flake-utils": { | |
"inputs": { | |
"systems": "systems" | |
}, | |
"locked": { | |
"lastModified": 1710146030, | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", | |
"treeHash": "bd263f021e345cb4a39d80c126ab650bebc3c10c", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"gitignore": { | |
"inputs": { | |
"nixpkgs": [ | |
"pre-commit-hooks", | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1709087332, | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394", | |
"treeHash": "ca14199cabdfe1a06a7b1654c76ed49100a689f9", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"type": "github" | |
} | |
}, | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1710796454, | |
"owner": "cachix", | |
"repo": "devenv-nixpkgs", | |
"rev": "06fb0f1c643aee3ae6838dda3b37ef0abc3c763b", | |
"treeHash": "9bb13f7f39e825a5d91bbe4139fbc129243b907d", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "cachix", | |
"ref": "rolling", | |
"repo": "devenv-nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-stable": { | |
"locked": { | |
"lastModified": 1710951922, | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "f091af045dff8347d66d186a62d42aceff159456", | |
"treeHash": "46b3620ce937feaa05c3d0b4e91bd003985947ee", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixos-23.11", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"pre-commit-hooks": { | |
"inputs": { | |
"flake-compat": "flake-compat", | |
"flake-utils": "flake-utils", | |
"gitignore": "gitignore", | |
"nixpkgs": [ | |
"nixpkgs" | |
], | |
"nixpkgs-stable": "nixpkgs-stable" | |
}, | |
"locked": { | |
"lastModified": 1710923068, | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"rev": "e611897ddfdde3ed3eaac4758635d7177ff78673", | |
"treeHash": "d7cff0ca3e7cdccd8ea9ef00f8534ef6b425cfc6", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"type": "github" | |
} | |
}, | |
"root": { | |
"inputs": { | |
"devenv": "devenv", | |
"nixpkgs": "nixpkgs", | |
"pre-commit-hooks": "pre-commit-hooks" | |
} | |
}, | |
"systems": { | |
"locked": { | |
"lastModified": 1681028828, | |
"owner": "nix-systems", | |
"repo": "default", | |
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", | |
"treeHash": "cce81f2a0f0743b2eb61bc2eb6c7adbe2f2c6beb", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "nix-systems", | |
"repo": "default", | |
"type": "github" | |
} | |
} | |
}, | |
"root": "root", | |
"version": 7 | |
} |
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
{ pkgs, ... }: | |
{ | |
# https://devenv.sh/basics/ | |
env.GREET = "devenv"; | |
# https://devenv.sh/packages/ | |
packages = [ pkgs.git ]; | |
# https://devenv.sh/scripts/ | |
scripts.hello.exec = "echo hello from $GREET"; | |
enterShell = '' | |
hello | |
git --version | |
''; | |
# https://devenv.sh/languages/ | |
# languages.nix.enable = true; | |
# https://devenv.sh/pre-commit-hooks/ | |
# pre-commit.hooks.shellcheck.enable = true; | |
# https://devenv.sh/processes/ | |
# processes.ping.exec = "ping example.com"; | |
# See full reference at https://devenv.sh/reference/options/ | |
} |
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
inputs: | |
nixpkgs: | |
url: github:cachix/devenv-nixpkgs/rolling | |
# If you're using non-OSS software, you can set allowUnfree to true. | |
# allowUnfree: true | |
# If you're willing to use a package that's vulnerable | |
# permittedInsecurePackages: | |
# - "openssl-1.1.1w" | |
# If you have more than one devenv you can merge them | |
#imports: | |
# - ./backend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment