puchiedarcy

Untitled

Nov 2nd, 2026
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. { lib, modulesPath, pkgs, ... }:
  2.  
  3. {
  4. imports = [
  5. "${modulesPath}/virtualisation/lxc-container.nix"
  6. ./configuration.nix
  7. ];
  8.  
  9. networking = {
  10. dhcpcd.enable = false;
  11. useDHCP = false;
  12. useHostResolvConf = false;
  13. hostId = "08171908";
  14. hostName = "kinzo";
  15. };
  16.  
  17. systemd.network = {
  18. enable = true;
  19. networks."50-eth0" = {
  20. matchConfig.Name = "eth0";
  21. networkConfig = {
  22. DHCP = "ipv4";
  23. IPv6AcceptRA = false;
  24. };
  25. linkConfig.RequiredForOnline = "routable";
  26. };
  27. };
  28.  
  29. users.users.puchie.extraGroups = ["podman"];
  30.  
  31. virtualisation = {
  32. containers.enable = true;
  33. oci-containers = {
  34. backend = "podman";
  35. containers = {
  36. actual = {
  37. image = "docker.io/actualbudget/actual-server:25.12.0-alpine";
  38. ports = ["0.0.0.0:5006:5006"];
  39. volumes = ["/var/actualbudget:/data"];
  40. };
  41. forgejo = {
  42. environment = {
  43. FORGEJO__server__SSH_PORT = "222";
  44. };
  45. image = "codeberg.org/forgejo/forgejo:13";
  46. ports = ["0.0.0.0:3001:3000" "0.0.0.0:222:22"];
  47. volumes = ["/var/forgejo:/data" "/etc/localtime:/etc/localtime:ro"];
  48. };
  49. homepage = {
  50. environment = {
  51. HOMEPAGE_ALLOWED_HOSTS = "home.puchie.dev";
  52. };
  53. image = "ghcr.io/gethomepage/homepage:latest";
  54. ports = ["0.0.0.0:3000:3000"];
  55. volumes = ["/var/homepage:/app/config"];
  56. };
  57. nxpm = {
  58. image = "docker.io/jc21/nginx-proxy-manager:2.13.5";
  59. ports = ["0.0.0.0:80:80" "0.0.0.0:81:81" "0.0.0.0:443:443"];
  60. volumes = ["/var/nginx-proxy-manager:/data" "/var/lets-encrypt:/etc/letsencrypt"];
  61. };
  62. vaultwarden= {
  63. environment = {
  64. DOMAIN = "https://vault.puchie.dev";
  65. ENABLE_DB_WAL = "false";
  66. };
  67. image = "docker.io/vaultwarden/server:1.35.1-alpine";
  68. ports = ["0.0.0.0:8000:80"];
  69. volumes = ["/var/vaultwarden:/data"];
  70. };
  71. };
  72. };
  73.  
  74. podman = {
  75. enable = true;
  76. dockerCompat = true;
  77. };
  78. };
  79. }
Advertisement