summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-20 00:01:59 -0400
committerseth <[email protected]>2023-05-20 00:01:59 -0400
commit4c9e7e5e97e0c5b100a8301649084bb1040c644d (patch)
tree4f52dc3a5a71d0413dd7446a2fd890d9a30aa3c2 /nix
parentb316f63b98d5ba77f0a78f131d0e7de350a1ac80 (diff)
switch to pnpm
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix28
-rw-r--r--nix/module.nix35
2 files changed, 0 insertions, 63 deletions
diff --git a/nix/default.nix b/nix/default.nix
deleted file mode 100644
index 20afc8b..0000000
--- a/nix/default.nix
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- self,
- mkYarnPackage,
- writeShellScriptBin,
- ...
-}: let
- gitRev = writeShellScriptBin "git" ''
- echo ${self.rev or "dirty"};
- '';
-in
- mkYarnPackage rec {
- pname = "getchoo-website";
-
- src = builtins.path {
- path = ../.;
- name = "getchoo-website-source";
- };
-
- packageJSON = src + "/package.json";
- yarnLock = src + "/yarn.lock";
-
- nativeBuildInputs = [gitRev];
-
- buildPhase = ''
- export HOME="$(mktemp -d)"
- yarn --offline build
- '';
- }
diff --git a/nix/module.nix b/nix/module.nix
deleted file mode 100644
index decb686..0000000
--- a/nix/module.nix
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}: let
- cfg = config.services.getchoo-website;
- inherit (lib) mkEnableOption mkIf mkOption types;
-in {
- options.services.getchoo-website = {
- enable = mkEnableOption "enable getchoo-website";
-
- hostName = mkOption {
- type = types.str;
- description = "hostname for nginx virtualHost";
- };
-
- location = mkOption {
- type = types.str;
- default = "/";
- description = "location to serve on virtualHost";
- };
- };
-
- config.services.nginx = mkIf cfg.enable {
- enable = true;
- virtualHosts.${cfg.hostName} = {
- locations.${cfg.location} = {
- root = "${pkgs.getchoo-website}/libexec/getchoo-website/deps/getchoo-website/dist/";
- index = "index.html";
- tryFiles = "$uri =404";
- };
- };
- };
-}