Add memos service

This commit is contained in:
Zuckerberg 2025-08-10 19:03:35 -07:00
parent ead6653de1
commit 4956e41285
3 changed files with 26 additions and 0 deletions

13
flake.lock generated
View File

@ -283,6 +283,18 @@
"url": "https://github.com/NixOS/nixpkgs/pull/347353.diff" "url": "https://github.com/NixOS/nixpkgs/pull/347353.diff"
} }
}, },
"nixpkgs-memos": {
"flake": false,
"locked": {
"narHash": "sha256-UidUaQY+9vo90rNCVInX1E+JbJ1xKFVSTMNRYKQEKpQ=",
"type": "file",
"url": "https://github.com/NixOS/nixpkgs/pull/426687.diff"
},
"original": {
"type": "file",
"url": "https://github.com/NixOS/nixpkgs/pull/426687.diff"
}
},
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
@ -295,6 +307,7 @@
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-linkwarden": "nixpkgs-linkwarden", "nixpkgs-linkwarden": "nixpkgs-linkwarden",
"nixpkgs-memos": "nixpkgs-memos",
"simple-nixos-mailserver": "simple-nixos-mailserver", "simple-nixos-mailserver": "simple-nixos-mailserver",
"systems": "systems" "systems": "systems"
} }

View File

@ -6,6 +6,10 @@
url = "https://github.com/NixOS/nixpkgs/pull/347353.diff"; url = "https://github.com/NixOS/nixpkgs/pull/347353.diff";
flake = false; flake = false;
}; };
nixpkgs-memos = {
url = "https://github.com/NixOS/nixpkgs/pull/426687.diff";
flake = false;
};
# Common Utils Among flake inputs # Common Utils Among flake inputs
systems.url = "github:nix-systems/default"; systems.url = "github:nix-systems/default";
@ -129,6 +133,7 @@
# despite me following guides and examples specific to rust packages. # despite me following guides and examples specific to rust packages.
./patches/librespot-pin.patch ./patches/librespot-pin.patch
inputs.nixpkgs-linkwarden inputs.nixpkgs-linkwarden
inputs.nixpkgs-memos
]; ];
}; };
patchedNixpkgs = nixpkgs.lib.fix (self: (import "${patchedNixpkgsSrc}/flake.nix").outputs { self = nixpkgs; }); patchedNixpkgs = nixpkgs.lib.fix (self: (import "${patchedNixpkgsSrc}/flake.nix").outputs { self = nixpkgs; });

View File

@ -252,6 +252,7 @@
(mkVirtualHost "todo.s0.neet.dev" "http://localhost:${toString config.services.vikunja.port}") (mkVirtualHost "todo.s0.neet.dev" "http://localhost:${toString config.services.vikunja.port}")
(mkVirtualHost "budget.s0.neet.dev" "http://localhost:${toString config.services.actual.settings.port}") # actual budget (mkVirtualHost "budget.s0.neet.dev" "http://localhost:${toString config.services.actual.settings.port}") # actual budget
(mkVirtualHost "linkwarden.s0.neet.dev" "http://localhost:${toString config.services.linkwarden.port}") (mkVirtualHost "linkwarden.s0.neet.dev" "http://localhost:${toString config.services.linkwarden.port}")
(mkVirtualHost "memos.s0.neet.dev" "http://localhost:${toString config.services.memos.port}")
]; ];
tailscaleAuth = { tailscaleAuth = {
@ -274,6 +275,7 @@
"todo.s0.neet.dev" "todo.s0.neet.dev"
"budget.s0.neet.dev" "budget.s0.neet.dev"
"linkwarden.s0.neet.dev" "linkwarden.s0.neet.dev"
# "memos.s0.neet.dev" # messes up memos /auth route
]; ];
expectedTailnet = "koi-bebop.ts.net"; expectedTailnet = "koi-bebop.ts.net";
}; };
@ -343,5 +345,11 @@
port = 48072; port = 48072;
}; };
services.memos = {
enable = true;
address = "127.0.0.1";
port = 57643;
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv7l-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv7l-linux" ];
} }