From af1ca1b3a09bcbbe5a2e6da679d75e326f56cbe4 Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Wed, 19 Jul 2023 18:20:27 +0200 Subject: [PATCH] Extract kotori from configuration.nix --- hosts/kamoshi/configuration.nix | 15 +-------------- hosts/kamoshi/profiles/kotori.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 hosts/kamoshi/profiles/kotori.nix diff --git a/hosts/kamoshi/configuration.nix b/hosts/kamoshi/configuration.nix index e1b7f51..5c187f1 100644 --- a/hosts/kamoshi/configuration.nix +++ b/hosts/kamoshi/configuration.nix @@ -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 diff --git a/hosts/kamoshi/profiles/kotori.nix b/hosts/kamoshi/profiles/kotori.nix new file mode 100644 index 0000000..6c4f688 --- /dev/null +++ b/hosts/kamoshi/profiles/kotori.nix @@ -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; + }; + }; + }; + }; +}