Added more services
This commit is contained in:
29
modules/home/containers/vikunja.nix
Normal file
29
modules/home/containers/vikunja.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.settings.containers.vikunja;
|
||||
in {
|
||||
options = {
|
||||
settings.containers.vikunja.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Enable vikunja container
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.podman.containers.vikunja = {
|
||||
image = "vikunja/vikunja";
|
||||
network = "proxy";
|
||||
userNS = "keep-id";
|
||||
volumes = [
|
||||
"%h/containers/vikunja/files:/app/vikunja/files"
|
||||
"%h/containers/vikunja/db:/db"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user