mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -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
|
in
|
||||||
{
|
{
|
||||||
label = hledgerLabel;
|
label = hledgerLabel;
|
||||||
email = dummy;
|
|
||||||
name = hledgerName;
|
name = hledgerName;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "/mnt/media/storage/${hledgerLabel}";
|
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;
|
name = instances.hledger.label;
|
||||||
url = "http://localhost.${builtins.toString instances.ports.port0}";
|
url = "http://localhost.${builtins.toString instances.hledger.ports.port0}";
|
||||||
tags = [
|
tags = [
|
||||||
instances.hledger.name
|
instances.hledger.name
|
||||||
"hledger"
|
"hledger"
|
||||||
|
|
|
@ -13,14 +13,13 @@ let
|
||||||
;
|
;
|
||||||
service = hledger;
|
service = hledger;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
hledger-web = {
|
hledger-web = {
|
||||||
enable = true;
|
enable = true;
|
||||||
host = localhost;
|
host = localhost;
|
||||||
baseUrl = "https://${host}";
|
# baseUrl = "https://${host}";
|
||||||
stateDir = service.paths.path0;
|
stateDir = service.paths.path0;
|
||||||
port = service.ports.port0;
|
port = service.ports.port0;
|
||||||
journalFiles = [
|
journalFiles = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue