Fixed bad option in it-tools, pi-hole and traefik. Added virtualization file.
This commit is contained in:
@@ -13,5 +13,6 @@
|
|||||||
./passbolt.nix
|
./passbolt.nix
|
||||||
./pi-hole.nix
|
./pi-hole.nix
|
||||||
./traefik.nix
|
./traefik.nix
|
||||||
|
./virtualization.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -17,8 +17,8 @@ helper.mkPodmanService {
|
|||||||
description = "IT-tools, useful tools when doing IT";
|
description = "IT-tools, useful tools when doing IT";
|
||||||
pod = "false";
|
pod = "false";
|
||||||
defaultPort = "8880";
|
defaultPort = "8880";
|
||||||
configDir = false;
|
configDirEnabled = false;
|
||||||
dataDir = false;
|
dataDirEnabled = false;
|
||||||
middlewares = [ "secureHeaders" ];
|
middlewares = [ "secureHeaders" ];
|
||||||
|
|
||||||
# Compose file good
|
# Compose file good
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ helper.mkPodmanService {
|
|||||||
defaultPort = "4443";
|
defaultPort = "4443";
|
||||||
scheme = "https";
|
scheme = "https";
|
||||||
dependencies = [ "network.target" ];
|
dependencies = [ "network.target" ];
|
||||||
dataDir = false;
|
dataDirEnabled = false;
|
||||||
startDelay = 10;
|
startDelay = 10;
|
||||||
generatedSecrets = {
|
generatedSecrets = {
|
||||||
PIHOLE_PASSWORD = "xkcdpass -n 10 -d -";
|
PIHOLE_PASSWORD = "xkcdpass -n 10 -d -";
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ helper.mkPodmanService {
|
|||||||
inherit name;
|
inherit name;
|
||||||
description = "Traefik reverse proxy, one to rule them all";
|
description = "Traefik reverse proxy, one to rule them all";
|
||||||
pod = "false";
|
pod = "false";
|
||||||
dataDir = false;
|
dataDirEnabled = false;
|
||||||
dependencies = [ "network.target" ];
|
dependencies = [ "network.target" ];
|
||||||
startDelay = 10;
|
startDelay = 10;
|
||||||
generatedSecrets = {
|
generatedSecrets = {
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.numbus.services.virtualization;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
options.numbus.services.virtualization = {
|
||||||
|
enable = mkEnableOption "QEMU/KVM virtualization software";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user