From 1e48f190dae8f59d6c2f68bdde9a7f988ae40c48 Mon Sep 17 00:00:00 2001 From: awkawb Date: Sat, 28 Dec 2024 16:19:55 -0500 Subject: [PATCH] Removed unused files and directories --- CHANGELOG.md | 11 --------- shell.nix | 26 --------------------- tests/test-config.nix | 53 ------------------------------------------ tests/test-password | 1 - tests/test-secrets.env | 2 -- 5 files changed, 93 deletions(-) delete mode 100644 CHANGELOG.md delete mode 100644 shell.nix delete mode 100644 tests/test-config.nix delete mode 100644 tests/test-password delete mode 100644 tests/test-secrets.env diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 1781ca0..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -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 - diff --git a/shell.nix b/shell.nix deleted file mode 100644 index eb48a4c..0000000 --- a/shell.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ pkgs ? import { config.allowUnfree = true; } -, lib ? import -}: - -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 - ]; -} - diff --git a/tests/test-config.nix b/tests/test-config.nix deleted file mode 100644 index 2c1e2b3..0000000 --- a/tests/test-config.nix +++ /dev/null @@ -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; -} diff --git a/tests/test-password b/tests/test-password deleted file mode 100644 index 9daeafb..0000000 --- a/tests/test-password +++ /dev/null @@ -1 +0,0 @@ -test diff --git a/tests/test-secrets.env b/tests/test-secrets.env deleted file mode 100644 index e82a373..0000000 --- a/tests/test-secrets.env +++ /dev/null @@ -1,2 +0,0 @@ -APP_KEY=base64:gJnNI8pOx4c0/Z6kl9mIjn0X9XkbJUWjtqnDFl9prvo= -API_KEY=test-api-token