Merge branch 'master' of gitea.awkawb.cloud:awkawb/invoice-ninja-nixos
This commit is contained in:
commit
038d6fb3bf
10
Makefile
10
Makefile
@ -11,8 +11,7 @@
|
||||
|
||||
# Since all targets are phony, all targets should be listed here
|
||||
# One target per line
|
||||
.PHONY: boot-graphical-vm \
|
||||
boot-vm \
|
||||
.PHONY: boot-vm \
|
||||
build-vm \
|
||||
clean \
|
||||
format-nix-files \
|
||||
@ -29,8 +28,8 @@ format-nix-files: ## Format nix files using the nixpkgs-fmt tool
|
||||
find . -name "*.nix" -exec nixpkgs-fmt {} \;
|
||||
|
||||
clean: ## Clean build artifacts and shutdown running virtual machines
|
||||
rm result
|
||||
rm nixos.qcow2
|
||||
rm result > /dev/null 2>&1
|
||||
rm nixos.qcow2 > /dev/null 2>&1
|
||||
pkill qemu
|
||||
exit 0
|
||||
|
||||
@ -46,6 +45,3 @@ boot-vm: ## Run virtual machine in current terminal
|
||||
-nographic; \
|
||||
reset
|
||||
|
||||
boot-graphical-vm: ## Run virtual machine in QEMU window
|
||||
./result/bin/run-nixos-vm
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ let
|
||||
cfg = config.services.invoice-ninja;
|
||||
user = cfg.user;
|
||||
group = cfg.group;
|
||||
invoice-ninja = pkgs.callPackage ./default.nix {
|
||||
invoice-ninja = pkgs.callPackage ../../../../pkgs/by-name/in/invoice-ninja/package.nix {
|
||||
inherit (cfg) dataDir runtimeDir;
|
||||
};
|
||||
configFormat = pkgs.formats.keyValue { };
|
||||
|
||||
@ -10,16 +10,40 @@
|
||||
|
||||
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 = "testing";
|
||||
initialPassword = "test";
|
||||
};
|
||||
|
||||
services.invoice-ninja = {
|
||||
enable = true;
|
||||
database.createLocally = true;
|
||||
nginx = { };
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
1
tests/test-password
Normal file
1
tests/test-password
Normal file
@ -0,0 +1 @@
|
||||
test
|
||||
@ -1 +1,2 @@
|
||||
APP_KEY=base64:gJnNI8pOx4c0/Z6kl9mIjn0X9XkbJUWjtqnDFl9prvo=
|
||||
API_KEY=test-api-token
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user