Extract kotori from configuration.nix

This commit is contained in:
Maciej Jur 2023-07-19 18:20:27 +02:00
parent 18c8f35265
commit af1ca1b3a0
No known key found for this signature in database
GPG key ID: ADA3BF323198C639
2 changed files with 17 additions and 14 deletions

View file

@ -5,6 +5,7 @@
/etc/nixos/hardware-configuration.nix
./profiles/freshrss.nix
./profiles/cgit.nix
./profiles/kotori.nix
];
# Use the GRUB 2 boot loader.
@ -159,20 +160,6 @@
defaults.email = "maciej@kamoshi.org";
};
virtualisation = {
docker.enable = true;
oci-containers = {
backend = "docker";
containers = {
kotori = {
image = "kamov/kotori";
environmentFiles = [ /root/secrets/kotori.env ];
autoStart = true;
};
};
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave

View file

@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
virtualisation = {
docker.enable = true;
oci-containers = {
backend = "docker";
containers = {
kotori = {
image = "kamov/kotori";
environmentFiles = [ /root/secrets/kotori.env ];
autoStart = true;
};
};
};
};
}