From 021da4d0b7c6b1b8e077df4acefa3bc992e78cc0 Mon Sep 17 00:00:00 2001 From: notohh Date: Sat, 10 Jun 2023 05:03:50 -0400 Subject: [PATCH] yuki: init kanboard --- hosts/yuki/default.nix | 9 +++------ hosts/yuki/home.nix | 6 +----- hosts/yuki/services/default.nix | 5 +++++ hosts/yuki/services/kanboard.nix | 12 ++++++++++++ 4 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 hosts/yuki/services/default.nix create mode 100644 hosts/yuki/services/kanboard.nix diff --git a/hosts/yuki/default.nix b/hosts/yuki/default.nix index 5a141c5..3e369c8 100644 --- a/hosts/yuki/default.nix +++ b/hosts/yuki/default.nix @@ -1,12 +1,10 @@ -{ - config, - pkgs, - ... -}: { +{...}: { imports = [ ./hardware-configuration.nix + ./services ../../modules ]; + boot.loader = { systemd-boot = { enable = true; @@ -26,5 +24,4 @@ layout = "us"; xkbVariant = ""; }; - services.openssh.enable = true; } diff --git a/hosts/yuki/home.nix b/hosts/yuki/home.nix index c8a9536..c7eafac 100644 --- a/hosts/yuki/home.nix +++ b/hosts/yuki/home.nix @@ -1,8 +1,4 @@ -{ - config, - pkgs, - ... -}: { +{...}: { imports = [ ../../home ]; diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix new file mode 100644 index 0000000..14642b9 --- /dev/null +++ b/hosts/yuki/services/default.nix @@ -0,0 +1,5 @@ +{...}: { + imports = [ + ./kanboard.nix + ]; +} diff --git a/hosts/yuki/services/kanboard.nix b/hosts/yuki/services/kanboard.nix new file mode 100644 index 0000000..3636d2e --- /dev/null +++ b/hosts/yuki/services/kanboard.nix @@ -0,0 +1,12 @@ +{...}: { + virtualisation.oci-containers.containers.kanboard = { + image = "kanboard/kanboard"; + ports = [ + "8080:80" + ]; + volumes = [ + "/var/lib/kanboard/kanboard_data:/var/www/app/data" + "/var/lib/kanboard/kanboard_plugins:/var/www/app/plugins" + ]; + }; +}