add pkgs and overlays to nb config
This commit is contained in:
40
hosts/nb-01.cloonar.com/pkgs/bento/default.nix
Normal file
40
hosts/nb-01.cloonar.com/pkgs/bento/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ pkgs, lib, stdenv, fetchgit }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "bento";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/rapenne-s/bento.git";
|
||||
rev = "6418bd64ecabbfa720c7a87ec39ee1a8b46a907e";
|
||||
sha256 = "sha256-gLWoZh7fMn3cpIYSJFSVOQHA6qUIJikHXmucHX7P2WI=";
|
||||
};
|
||||
|
||||
buildInputs = [ ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace bento --replace 'inotifywait' "${pkgs.inotify-tools}/bin/inotifywait";
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/share
|
||||
install -Dm555 bento $out/bin/
|
||||
install -Dm444 fleet.nix $out/share/
|
||||
install -Dm444 config.sh.sample $out/share/
|
||||
install -Dm444 LICENSE $out/share/
|
||||
install -Dm444 README.md $out/share/
|
||||
install -Dm444 utils/bento.nix $out/share/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A KISS deployment tool to keep your NixOS fleet (servers & workstations) up to date.";
|
||||
homepage = "https://github.com/rapenne-s/bento";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
## fleet nix is for sftp server with chroot
|
||||
## just copy to bento server and change configuration
|
||||
Reference in New Issue
Block a user