Removed unused files and directories
This commit is contained in:
parent
85de24655f
commit
1e48f190da
11
CHANGELOG.md
11
CHANGELOG.md
@ -1,11 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
||||||
|
|
||||||
## [2024.07.04] 2024-07-04
|
|
||||||
|
|
||||||
- Initial release
|
|
||||||
|
|
||||||
26
shell.nix
26
shell.nix
@ -1,26 +0,0 @@
|
|||||||
{ pkgs ? import <nixpkgs> { config.allowUnfree = true; }
|
|
||||||
, lib ? import <nixpkgs/lib>
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
# Helper script to generate an APP_KEY for .env
|
|
||||||
generate-invoice-ninja-app-key = pkgs.writers.writeBashBin "generate-laravel-key" ''
|
|
||||||
echo "APP_KEY=base64:$(${pkgs.openssl}/bin/openssl rand -base64 32)"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Invoice Ninja derivation
|
|
||||||
# Add to buildInputs to test in nix-shell environment
|
|
||||||
invoice-ninja = pkgs.callPackage ./default.nix {
|
|
||||||
inherit lib;
|
|
||||||
php = pkgs.php;
|
|
||||||
openssl = pkgs.openssl;
|
|
||||||
fetchFromGitHub = pkgs.fetchFromGitHub;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
pkgs.mkShell {
|
|
||||||
buildInputs = [
|
|
||||||
generate-invoice-ninja-app-key
|
|
||||||
pkgs.nixpkgs-fmt
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
{ modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
../invoice-ninja.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
environment.etc."msmtp-password" = {
|
|
||||||
enable = true;
|
|
||||||
user = "invoiceninja";
|
|
||||||
group = "invoiceninja";
|
|
||||||
mode = "0440";
|
|
||||||
text = ''
|
|
||||||
3t5h638t3a7y7275
|
|
||||||
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.test = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" ];
|
|
||||||
initialPassword = "test";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.invoice-ninja = {
|
|
||||||
enable = true;
|
|
||||||
database.createLocally = true;
|
|
||||||
webserver.caddy.enable = true;
|
|
||||||
webserver.nginx.enable = false;
|
|
||||||
mail.mailFromName = "Andrew Bryant";
|
|
||||||
adminEmail = "billing@allpawcare.com";
|
|
||||||
msmtp.accounts.invoice-ninja = {
|
|
||||||
auth = true;
|
|
||||||
tls = true;
|
|
||||||
tls_starttls = false;
|
|
||||||
from = "billing@allpawcare.com";
|
|
||||||
host = "smtp.fastmail.com";
|
|
||||||
port = 465;
|
|
||||||
user = "awkawb@awkawb.cloud";
|
|
||||||
passwordeval = "cat /etc/msmtp-password";
|
|
||||||
};
|
|
||||||
secretFile = ./test-secrets.env;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.enable = false;
|
|
||||||
|
|
||||||
services.resolved.enable = true;
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
test
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
APP_KEY=base64:gJnNI8pOx4c0/Z6kl9mIjn0X9XkbJUWjtqnDFl9prvo=
|
|
||||||
API_KEY=test-api-token
|
|
||||||
Loading…
x
Reference in New Issue
Block a user