Skip to content

Commit e989a53

Browse files
committed
nix
1 parent 8e970f9 commit e989a53

13 files changed

+2404
-0
lines changed

.direnv/bin/nix-direnv-reload

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
if [[ ! -d "/home/ty/Dev/website" ]]; then
4+
echo "Cannot find source directory; Did you move it?"
5+
echo "(Looking for "/home/ty/Dev/website")"
6+
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
7+
exit 1
8+
fi
9+
10+
# rebuild the cache forcefully
11+
_nix_direnv_force_reload=1 direnv exec "/home/ty/Dev/website" true
12+
13+
# Update the mtime for .envrc.
14+
# This will cause direnv to reload again - but without re-building.
15+
touch "/home/ty/Dev/website/.envrc"
16+
17+
# Also update the timestamp of whatever profile_rc we have.
18+
# This makes sure that we know we are up to date.
19+
touch -r "/home/ty/Dev/website/.envrc" "/home/ty/Dev/website/.direnv"/*.rc
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/01x5k4nlxcpyd85nnr0b9gm89rm8ff4x-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/2y9xcdh9v8cl5fnkb1pw1ckfj290f9s1-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/aaywjs6sqjqcbv33wxy1va9q3811qlmg-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/y2m926sg5ms90mh7h7r5vq4c7yaxgf0a-nix-shell-env

.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc

Lines changed: 2096 additions & 0 deletions
Large diffs are not rendered by default.

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

flake.lock

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
description = "Moulberry's Bush Website";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils, ... }:
10+
flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in {
11+
devShells.default = pkgs.mkShell {
12+
packages = with pkgs; [
13+
nodejs_23
14+
];
15+
};
16+
17+
packages.default = self.packages.${system}.website;
18+
packages.website = pkgs.callPackage ./nix/package.nix {
19+
nodejs = pkgs.nodejs_23;
20+
};
21+
22+
nixosModules.default = ./nix/module.nix;
23+
});
24+
}

0 commit comments

Comments
 (0)