Compare commits

..

No commits in common. "641e226f9bbff3a4d33448c421186ad4b8259ae3" and "3a49fecf1dfb3f6e4c48d10d847f4c0325fe88bb" have entirely different histories.

3 changed files with 6 additions and 57 deletions

View file

@ -65,11 +65,6 @@ in {
server.domain = "ginko.woach.me"; server.domain = "ginko.woach.me";
}; };
fava = {
enable = true;
port = "5128";
};
syncthing = { syncthing = {
enable = true; enable = true;
devices = { devices = {

View file

@ -1,13 +1,12 @@
{ config, pkgs, lib, hostname, usernameList, ... }: { config, pkgs, lib, hostname, usernameList, ... }:
{ {
options.system = { options = {
timezone = lib.mkOption { default = "America/Los_Angeles"; }; system.timezone = lib.mkOption { default = "America/Los_Angeles"; };
extraFonts = lib.mkOption { default = []; }; system.extraFonts = lib.mkOption { default = []; };
extraPkgs = lib.mkOption { default = []; }; system.isNonEFI = lib.mkEnableOption
isNonEFI = lib.mkEnableOption
"Enable if you are running a non-EFI system"; "Enable if you are running a non-EFI system";
users.bigWheels = lib.mkOption { default = []; }; system.users.bigWheels = lib.mkOption { default = []; };
}; };
config = lib.mkMerge [ config = lib.mkMerge [
@ -34,7 +33,7 @@
git git
neovim neovim
xdg-user-dirs xdg-user-dirs
] ++ config.system.extraPkgs; ];
# XDG Compliance # XDG Compliance
nix.settings.use-xdg-base-directories = true; nix.settings.use-xdg-base-directories = true;

View file

@ -1,45 +0,0 @@
{ config, pkgs, lib, ... }:
{
options.fava = {
enable = lib.mkEnableOption "Enables fava double entry accounting";
ledgerFile = lib.mkOption { default = "/var/lib/fava/ledger.beancount"; };
port = lib.mkOption { default = "5000"; };
host = lib.mkOption { default = "localhost"; };
};
config = lib.mkIf config.fava.enable {
systemd.services.fava = {
description = "Fava";
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.fava}/bin/fava --port ${config.fava.port} --host ${config.fava.host} ${config.fava.ledgerFile}";
Type = "simple";
User = "fava";
Group = "fava";
Restart = "on-failure";
RestartSec = "5s";
NoNewPrivileges = true;
PrivateTmp = true;
PrivateDevices = true;
ProtectHome = true;
ProtectSystem = "full";
ReadWriteDirectories = "/var/lib/fava";
};
};
users.users.fava = {
home = "/var/lib/fava";
createHome = true;
isSystemUser = true;
group = "fava";
};
users.groups.fava = {};
system.extraPkgs = [
pkgs.beancount
];
};
}