Compare commits
4 commits
984b0e02c6
...
16ac9ae637
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | 16ac9ae637 | ||
Antoine Martin | bbdb35db7e | ||
Antoine Martin | 29c8757ea7 | ||
Antoine Martin | def425ed32 |
21
.github/workflows/cachix.yml
vendored
Normal file
21
.github/workflows/cachix.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: "Build everything and push to cachix"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '* */1 * * *'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: cachix/install-nix-action@v12
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-20.09-small
|
||||
- uses: cachix/cachix-action@v8
|
||||
with:
|
||||
name: alarsyo
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: nix-build -E 'let pkgs = import <nixpkgs> { overlays = import ./overlays; }; in with pkgs; [ bitwarden_rs-postgresql bitwarden_rs-vault ]'
|
|
@ -137,5 +137,14 @@
|
|||
boot.supportedFilesystems = [ "btrfs" ];
|
||||
|
||||
nixpkgs.overlays = import ./overlays;
|
||||
|
||||
nix = {
|
||||
binaryCaches = [
|
||||
"https://alarsyo.cachix.org"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
"alarsyo.cachix.org-1:A6BmcaJek5+ZDWWv3fPteHhPm6U8liS9CbDbmegPfmk="
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
11
overlays/bitwarden_rs-vault.nix
Normal file
11
overlays/bitwarden_rs-vault.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
final: prev:
|
||||
{
|
||||
bitwarden_rs-vault = prev.bitwarden_rs-vault.overrideAttrs (drv: rec {
|
||||
version = "2.17.1";
|
||||
|
||||
src = prev.fetchurl {
|
||||
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
|
||||
sha256 = "1kd21higniszk1na5ag7q4g0l7h6ddl91gpbjbwym28hsbjvxla7";
|
||||
};
|
||||
});
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
let
|
||||
bitwarden_rs = import ./bitwarden_rs.nix;
|
||||
bitwarden_rs-vault = import ./bitwarden_rs-vault.nix;
|
||||
in
|
||||
[
|
||||
bitwarden_rs
|
||||
bitwarden_rs-vault
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue