Skip to content

Commit

Permalink
chore: add devenv.lock and comment out demos
Browse files Browse the repository at this point in the history
  • Loading branch information
bklebe committed Jun 18, 2024
1 parent 13438ec commit 956f577
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 14 deletions.
12 changes: 2 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
!*.json
!*.md
!*.nix
!flake.lock
!.envrc
!*.yml
!*.yaml
Expand Down Expand Up @@ -52,15 +51,8 @@
# Devenv
.devenv*
devenv.local.nix

# direnv
.direnv

# pre-commit
.pre-commit-config.yaml
# Devenv
.devenv*
devenv.local.nix
!devenv.nix
!devenv.lock

# direnv
.direnv
Expand Down
122 changes: 122 additions & 0 deletions devenv.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1718618529,
"owner": "cachix",
"repo": "devenv",
"rev": "0dac15d6f859d6c3f3580a0da0c8cf19720ed9e8",
"treeHash": "6f0d53ca9892735b9cadb965fbbad71cfc7c7035",
"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"
}
},
"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": 1716977621,
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "4267e705586473d3e5c8d50299e71503f16a6fb6",
"treeHash": "6d9f1f7ca0faf1bc2eeb397c78a49623260d3412",
"type": "github"
},
"original": {
"owner": "cachix",
"ref": "rolling",
"repo": "devenv-nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1718447546,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "842253bf992c3a7157b67600c2857193f126563a",
"treeHash": "f83c8a39ca9b08ef20784df1ba861d15f54c26dd",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"gitignore": "gitignore",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1717664902,
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "cc4d466cb1254af050ff7bdf47f6d404a7c646d1",
"treeHash": "def977583217aad11744d144c1f7fc216ce450bf",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"nixpkgs": "nixpkgs",
"pre-commit-hooks": "pre-commit-hooks"
}
}
},
"root": "root",
"version": 7
}
17 changes: 13 additions & 4 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

{
cachix.enable = false;
# https://devenv.sh/basics/
# env.GREET = "devenv";

# https://devenv.sh/packages/
packages = [
Expand All @@ -28,12 +30,19 @@
pkgs.shfmt
];

enterShell = ''
'';
# https://devenv.sh/scripts/
# scripts.hello.exec = "echo hello from $GREET";

# enterShell = ''
# hello
# git --version
# '';

# https://devenv.sh/tests/
enterTest = ''
'';
# enterTest = ''
# echo "Running tests"
# git --version | grep "2.42.0"
# '';

# https://devenv.sh/services/
# services.postgres.enable = true;
Expand Down

0 comments on commit 956f577

Please sign in to comment.