Commit graph

50 commits

Author SHA1 Message Date
teutat3s 518ebf980d
flake.lock: Update
Update nixpkgs 23.11 -> 24.05

Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b0b2c5445c64191fd8d0b31f2b1a34e45a64547d' (2024-01-03)
  → 'github:NixOS/nixpkgs/086b448a5d54fd117f4dc2dee55c9f0ff461bdc1' (2024-09-16)
• Updated input 'agenix':
    'github:ryantm/agenix/417caa847f9383e111d1397039c9d4337d024bf0' (2023-12-24)
  → 'github:ryantm/agenix/f6291c5935fdc4e0bef208cfc0dcab7e3f7a1c41' (2024-08-10)
• Updated input 'devshell':
    'github:numtide/devshell/44ddedcbcfc2d52a76b64fb6122f209881bd3e1e' (2023-12-05)
  → 'github:numtide/devshell/67cce7359e4cd3c45296fb4aaf6a19e2a9c757ae' (2024-07-27)
• Removed input 'devshell/systems'
2024-09-19 11:49:23 +02:00
teutat3s 7fc3272636
Merge pull request 'Misc updates' (#1) from misc-updates into main
Reviewed-on: #1
2024-01-06 16:17:21 +00:00
teutat3s 9cc83031d1
chore: update secrets for test-vm 2024-01-06 17:16:27 +01:00
teutat3s fc1813564c
fix: update test-vm 2024-01-06 17:16:13 +01:00
teutat3s eb990d3ec3
docs: improve SSH host key rebuild process 2024-01-06 17:15:44 +01:00
teutat3s 139cc86d20
fix: python deps cleanup 2024-01-06 17:15:26 +01:00
teutat3s 508769f12e
chore: update erpnext version to 15+ 2024-01-06 17:14:55 +01:00
teutat3s 7805dd7205
agenix: rekey secrets for ryzensun 2024-01-06 13:21:50 +01:00
teutat3s 1ea7d288c3
fix: add ryzensun SSH keys 2024-01-06 13:20:35 +01:00
teutat3s bc8d34f238
fix: workaround for environment.noXlibs and nixos
test VM

See: https://github.com/NixOS/nixpkgs/issues/265675
2024-01-06 13:07:28 +01:00
teutat3s e8d06d76e1
fix: remove some python overlays, these are now
available in nixpkgs
2024-01-06 13:06:56 +01:00
teutat3s 39b3da8433
chore: bump bench, erpnext, frappe versions 2024-01-06 13:06:20 +01:00
teutat3s 6c293138fd
fix: update script, use long options for commands 2024-01-06 13:05:51 +01:00
teutat3s 19559562b2
feat: NixOS 23.11, fix python flit format 2024-01-06 11:49:51 +01:00
teutat3s 2a1a5ce8ee
wip 2024-01-06 10:47:04 +01:00
teutat3s 66e6c685d0
module: Fix missing headers for websockets
Should fix error: invalid origin when using websockets

Adapted from:
70c40e2be0/resources/nginx-template.conf (L49-L50)
2023-07-20 00:11:58 +02:00
teutat3s e74f2d0f04
frappe: fix python premailer dependency
premailer.premailer.ExternalFileLoadingError: Unable to load external
file 'assets/frappe/dist/css/email.bundle.HETZ7G4Y.css' because it's
explicitly not allowed

Unsupported new option introduced in premailer version 3.9.0
allow_loading_external_files=False
https://github.com/peterbe/premailer/blob/master/CHANGES.rst#390

Also, sort dependencies in python overlay by usage
2023-07-18 13:23:52 +02:00
teutat3s ceb04d96de
module: fix DNS by adding resolv.conf, ssl dirs to
BindReadOnlyPaths
This should fix temporary name resolution errors observed in erpnext.

Minor cleanup and explanatory comment for confinement.packages

We don't use pkgs from path, but prefer explicitly referring to pkgs
2023-07-18 12:23:09 +02:00
teutat3s 5519e0d6fe
flake: set nixpkgs to nixos-23.05
This change makes the nixos module more compatible with pub-solar/os
2023-07-18 02:30:30 +02:00
teutat3s 9c8a36de8b
module: fix erpnext-web-init script
erpnext-web-init: line 6: install: command not found
2023-07-18 01:54:43 +02:00
teutat3s 44a0598bd1
Bump flake.lock
Relax python dependency: croniter

• Updated input 'agenix':
    'github:ryantm/agenix/2994d002dcff5353ca1ac48ec584c7f6589fe447' (2023-04-21)
  → 'github:ryantm/agenix/0d8c5325fc81daf00532e3e26c6752f7bcde1143' (2023-07-14)
• Updated input 'agenix/darwin':
    'github:lnl7/nix-darwin/43ce086813c83184b88f67fc544af2050a3035ba' (2023-07-12)
  → 'github:lnl7/nix-darwin/87b9d090ad39b25b2400029c64825fc2a8868943' (2023-01-09)
• Added input 'agenix/home-manager':
    'github:nix-community/home-manager/32d3e39c491e2f91152c84f8ad8b003420eab0a1' (2023-04-22)
• Added input 'agenix/home-manager/nixpkgs':
    follows 'agenix/nixpkgs'
• Updated input 'devshell':
    'github:numtide/devshell/6b2554d28d46bfa6e24b941e999a145760dad0e1' (2023-06-05)
  → 'github:numtide/devshell/f9238ec3d75cefbb2b42a44948c4e8fb1ae9a205' (2023-07-03)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e635192892f5abbc2289eaac3a73cdb249abaefd' (2023-06-01)
  → 'github:NixOS/nixpkgs/6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222' (2023-07-16)
2023-07-18 01:37:29 +02:00
teutat3s 9b32753f26
module: fix systemd service dependency
When started before erpnext-web, the scheduler and queues do not start
successfully, because the common_site_config.json is still missing.
We can not schedule or queue anything yet, so starting after erpnext-web
is fine.
This fixes deployment via deploy-rs
2023-07-18 01:26:33 +02:00
teutat3s 28a47059b7
flake: export nixosModules.erpnext 2023-07-17 21:29:46 +02:00
teutat3s 7763af845d
Update bench, erpnext, frappe versions
bench: 5.16.2 -> 5.16.4
https://github.com/frappe/bench/releases/tag/v5.16.4

erpnext: 14.26.0 -> 14.30.6
https://github.com/frappe/erpnext/releases/tag/v14.30.6
Use new relaxed dependency: rapidfuzz

frappe: 14.37.0 -> 14.40.3
https://github.com/frappe/frappe/releases/tag/v14.40.3

Add update.sh script to quickly update all versions in pin.nix

Sort erpnext dependencies like upstream

Update Readme with docs how to use update.sh script
2023-07-17 21:10:27 +02:00
teutat3s 446a2b6dea
module: final fixes and cleanup 2023-07-17 21:06:45 +02:00
teutat3s aff559a20e
Manage secrets using agenix 2023-07-15 16:32:18 +02:00
teutat3s 7095204d06
Initial NixOS module 2023-07-09 14:46:22 +02:00
teutat3s 53dc0bf00f
Refactor test-vm, add queue + scheduler workers
Replace nginx with caddy

Prepare for nixos module implementation
2023-06-18 20:32:14 +02:00
teutat3s 232d6d3f41
wip: cleanup, more docs 2023-06-12 15:28:17 +02:00
teutat3s af3c949181
wip: working vm 2023-06-07 21:58:05 +02:00
Akshay Mankar d683e6795b
start nginx 2023-06-06 06:19:10 +02:00
Akshay Mankar 5d27509f50
erpnext starts in the VM 2023-06-05 19:41:51 +02:00
teutat3s cb9630c787
wip: use nixos-unstable
update frappe
update erpnext
refactor versions
2023-06-05 19:19:43 +02:00
Akshay Mankar 2bcd75eb09
WIP: Create a vm with systemd services to run erpnext 2023-06-03 19:31:46 +02:00
Akshay Mankar 779d1ad5d9
Separate apps and assets 2023-06-03 10:24:05 +02:00
Akshay Mankar 59249c421d
Symlink static assets in sites/assets/<app>/ 2023-06-02 18:16:34 +02:00
Akshay Mankar f564435084
Fix asset generation and tidy up a little 2023-06-02 16:00:58 +02:00
teutat3s 9ecee0f00e
WIP: rtl-css workaround
Link node_modules where frappe expects them to be
2023-06-02 12:06:46 +02:00
teutat3s 4a3e30097a
more erpnext wip
add Readme
2023-05-30 20:06:34 +02:00
teutat3s aacdc913a2
wip: backend works. frontend still has some issues 2023-05-23 02:05:33 +02:00
teutat3s f8346df08f
wip: backend works. frontend still has some issues 2023-05-23 00:50:17 +02:00
teutat3s e39cb5308f
wip: it wants tables 2023-05-22 19:26:55 +02:00
Akshay Mankar b5365ffb3c
wip: assets compile, run script still doesn't work 2023-05-21 20:20:59 +02:00
Akshay Mankar f1b7a7a5b9
Add script to run erpnext 2023-05-21 17:55:26 +02:00
teutat3s b786806143
erpnext: want propagatedBuildInputs 2023-05-21 17:51:45 +02:00
teutat3s 9781db320c
wip: assets 2023-05-20 23:36:21 +02:00
Akshay Mankar 5a181bbd83
Moar WIP, things compile! 2023-05-18 17:49:23 +02:00
teutat3s 454965b975
Even more WIP 2023-05-18 17:36:51 +02:00
Akshay Mankar 528fcc0fea
More WIP 2023-05-18 16:50:31 +02:00
Akshay Mankar f9289d49f4
First commit 2023-05-18 15:57:22 +02:00