finance additions (paperless, fava, beancount)
This commit is contained in:
@@ -10,7 +10,21 @@
|
||||
addn-hosts=/etc/adblock.hosts
|
||||
''; # find a way to make adblock hosts reproducible and updateable
|
||||
services.dnsmasq.servers = [ "45.90.30.49" "45.90.28.49" "1.1.1.1" "8.8.8.8" ];
|
||||
networking.hosts = { "192.168.1.240" = [ "mossnet.lan" "links.mossnet.lan" "read.mossnet.lan" "stats.mossnet.lan" "music.mossnet.lan" "rss.mossnet.lan" "tasks.mossnet.lan" "file.mossnet.lan" "books.mossnet.lan" ]; };
|
||||
networking.hosts = {
|
||||
"192.168.1.240" = [
|
||||
"mossnet.lan"
|
||||
"links.mossnet.lan"
|
||||
"read.mossnet.lan"
|
||||
"stats.mossnet.lan"
|
||||
"music.mossnet.lan"
|
||||
"rss.mossnet.lan"
|
||||
"tasks.mossnet.lan"
|
||||
"file.mossnet.lan"
|
||||
"books.mossnet.lan"
|
||||
"fin.mossnet.lan"
|
||||
"paper.mossnet.lan"
|
||||
];
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 53 ];
|
||||
networking.firewall.allowedUDPPorts = [ 53 ];
|
||||
}
|
||||
|
||||
@@ -3,29 +3,37 @@
|
||||
{
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
consumptionDirIsPublic = true;
|
||||
extraConfig.PAPERLESS_AUTO_LOGIN_USERNAME = "admin";
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
beancount
|
||||
pkgs.beancount
|
||||
];
|
||||
|
||||
# systemd.services.fava = {
|
||||
# path = [
|
||||
# pkgs.fava
|
||||
# ];
|
||||
# before = [ "nginx.service" ];
|
||||
# serviceConfig = {
|
||||
# User = "anish";
|
||||
# ExecStart = ''
|
||||
# fava /home/anish/usr/finance/ledger.beancount
|
||||
# '';
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
# TODO
|
||||
# This one doesn't have a start condition, so I'm manually triggering it
|
||||
# I'm not sure what the proper start condition is for it
|
||||
systemd.services.fava = {
|
||||
path = [
|
||||
pkgs.fava
|
||||
];
|
||||
before = [ "nginx.service" ];
|
||||
serviceConfig = {
|
||||
User = "anish";
|
||||
ExecStart = ''
|
||||
${pkgs.fava}/bin/fava -p 29492 /home/anish/usr/finance/ledger.beancount
|
||||
'';
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."fin.mossnet.lan".locations."/" = {
|
||||
proxyPass = "http://localhost:29492";
|
||||
};
|
||||
virtualHosts."paper.mossnet.lan".locations."/" = {
|
||||
proxyPass = "http://localhost:28981";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
192.168.1.240 file.mossnet.lan
|
||||
192.168.1.240 task.mossnet.lan
|
||||
192.168.1.240 fin.mossnet.lan
|
||||
192.168.1.240 paper.mossnet.lan
|
||||
'';
|
||||
# 10.0.69.4 mossnet.lan
|
||||
# 10.0.69.4 links.mossnet.lan
|
||||
|
||||
Reference in New Issue
Block a user