Use accentor package flakes

This commit is contained in:
Charlotte Van Petegem 2022-04-30 12:43:46 +02:00
parent 8dbe90f6de
commit 02c9261900
No known key found for this signature in database
GPG key ID: 019E764B7184435A
11 changed files with 143 additions and 15077 deletions

View file

@ -26,31 +26,8 @@
forceSSL = true;
useACMEHost = "vanpetegem.me";
};
apiPackage = (pkgs.accentor-api.override {
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
}).overrideAttrs (old: {
src = pkgs.fetchFromGitHub {
owner = "accentor";
repo = "api";
rev = "main";
sha256 = "sBmcgvGYeqcXKaYaIrpBU3jitTk8YXlnEk4GEGjfup0=";
};
});
webPackage = (pkgs.accentor-web.override {
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;
}).overrideAttrs (old: {
SKIP_CACHE = "true";
src = pkgs.fetchFromGitHub {
owner = "accentor";
repo = "web";
rev = "main";
sha256 = "SDSpikTeMWYjkC2NmBxakbG+Evtv22vFYw8dKGSHsOg=";
};
});
apiPackage = pkgs.accentor-api-unstable;
webPackage = pkgs.accentor-web-unstable;
};
security.doas.extraRules = [{