feat(apollo): add glance service

This commit is contained in:
Mohammad Rafiq 2025-04-06 22:28:04 +08:00
parent a7d2c31547
commit c871f56462
No known key found for this signature in database
3 changed files with 17 additions and 1 deletions

View file

@ -44,10 +44,11 @@
./modules/hardware/nvidia.nix ./modules/hardware/nvidia.nix
inputs.nixos-hardware.nixosModules.gigabyte-b650 inputs.nixos-hardware.nixosModules.gigabyte-b650
]) ])
++ (lib.optionals (hostname == "mellinoe" || hostname == "apollo") [ ++ (lib.optionals (hostname == "apollo") [
./modules/bootloaders/systemd-boot.nix ./modules/bootloaders/systemd-boot.nix
./modules/filesystems/impermanence.nix ./modules/filesystems/impermanence.nix
./modules/hardware/cpu_intel.nix ./modules/hardware/cpu_intel.nix
./modules/services.nix
]); ]);
}; };
}; };

5
modules/services.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
./services/glance.nix
];
}

View file

@ -0,0 +1,10 @@
{
services.glance = {
enable = true;
openFirewall = true;
settings = {
server.host = "0.0.0.0";
server.port = 8080;
};
};
}