feat(apollo): add glance service
This commit is contained in:
parent
a7d2c31547
commit
c871f56462
3 changed files with 17 additions and 1 deletions
|
@ -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
5
modules/services.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./services/glance.nix
|
||||||
|
];
|
||||||
|
}
|
10
modules/services/glance.nix
Normal file
10
modules/services/glance.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
services.glance = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
server.host = "0.0.0.0";
|
||||||
|
server.port = 8080;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue