mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 09:35:12 -05:00
feat: added hledger and restructured some home stuff
This commit is contained in:
parent
4db6929078
commit
f642608281
13 changed files with 23 additions and 4 deletions
|
@ -8,7 +8,6 @@ let
|
|||
in
|
||||
{
|
||||
label = hledgerLabel;
|
||||
email = dummy;
|
||||
name = hledgerName;
|
||||
paths = {
|
||||
path0 = "/mnt/media/storage/${hledgerLabel}";
|
||||
|
|
11
home/modules/cli/fun/aniCli/default.nix
Executable file
11
home/modules/cli/fun/aniCli/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
ani-cli
|
||||
;
|
||||
};
|
||||
}
|
10
home/modules/cli/fun/default.nix
Executable file
10
home/modules/cli/fun/default.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
content = builtins.readDir ./.;
|
||||
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
|
||||
importList = map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
|
@ -66,7 +66,7 @@ in
|
|||
}
|
||||
{
|
||||
name = instances.hledger.label;
|
||||
url = "http://localhost.${builtins.toString instances.ports.port0}";
|
||||
url = "http://localhost.${builtins.toString instances.hledger.ports.port0}";
|
||||
tags = [
|
||||
instances.hledger.name
|
||||
"hledger"
|
||||
|
|
|
@ -13,14 +13,13 @@ let
|
|||
;
|
||||
service = hledger;
|
||||
localhost = web.localhost.address0;
|
||||
host = "${service.subdomain}.${web.domains.url0}";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
hledger-web = {
|
||||
enable = true;
|
||||
host = localhost;
|
||||
baseUrl = "https://${host}";
|
||||
# baseUrl = "https://${host}";
|
||||
stateDir = service.paths.path0;
|
||||
port = service.ports.port0;
|
||||
journalFiles = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue