Extract kotori from configuration.nix
This commit is contained in:
parent
18c8f35265
commit
af1ca1b3a0
|
@ -5,6 +5,7 @@
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
./profiles/freshrss.nix
|
./profiles/freshrss.nix
|
||||||
./profiles/cgit.nix
|
./profiles/cgit.nix
|
||||||
|
./profiles/kotori.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
|
@ -159,20 +160,6 @@
|
||||||
defaults.email = "maciej@kamoshi.org";
|
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
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It's perfectly fine and recommended to leave
|
# on your system were taken. It's perfectly fine and recommended to leave
|
||||||
|
|
16
hosts/kamoshi/profiles/kotori.nix
Normal file
16
hosts/kamoshi/profiles/kotori.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue