Compare commits

...
3 Commits
Author SHA1 Message Date
Taneb 35862426ae Get hledger to work 2024-06-29 05:54:54 +00:00
Taneb 530edccdf5 Add hledger-web service 2024-06-26 15:09:19 +00:00
Taneb 22b8aedee4 Switch to unstable
I couldn't figure out how to update stable for some reason
2024-06-26 15:07:44 +00:00
2 changed files with 23 additions and 6 deletions
Generated
+10 -6
View File
@@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 0, "lastModified": 1719254875,
"narHash": "sha256-XD6GfVgSfWjqqWAuybkvaxS1/xrwTrh3V1dSkoYJW3Q=", "narHash": "sha256-ECni+IkwXjusHsm9Sexdtq8weAq/yUyt1TWIemXt3Ko=",
"path": "/nix/store/jjjyazlmzjls1kdpgn776iy9w345yq7l-source", "owner": "nixos",
"type": "path" "repo": "nixpkgs",
"rev": "2893f56de08021cffd9b6b6dfc70fd9ccd51eb60",
"type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "nixos",
"type": "indirect" "ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {
+13
View File
@@ -1,4 +1,7 @@
{ {
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: { outputs = { self, nixpkgs }: {
# miscellaneous stuff that's important # miscellaneous stuff that's important
nixosModules.base = {lib, ...}: { nixosModules.base = {lib, ...}: {
@@ -52,6 +55,15 @@
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
}; };
nixosModules.hledger = {...}: {
services.hledger-web = {
enable = true;
allow = "edit";
host = "0.0.0.0";
baseUrl = "http://192.168.1.37:5000";
};
networking.firewall.allowedTCPPorts = [ 5000 ];
};
nixosModules.samba = {...}: { nixosModules.samba = {...}: {
services.samba = { services.samba = {
enable = true; enable = true;
@@ -82,6 +94,7 @@
self.nixosModules.zfs self.nixosModules.zfs
self.nixosModules.plex self.nixosModules.plex
self.nixosModules.samba self.nixosModules.samba
self.nixosModules.hledger
]; ];
}; };
}; };