system/kvm: rename from virtualization

This commit is contained in:
Felix Buehler 2023-03-27 00:33:31 +02:00
parent 93cc7dcfc5
commit 2350dd913a
4 changed files with 8 additions and 8 deletions

View file

@ -6,10 +6,10 @@ in
{ {
my.system = { my.system = {
avahi.enable = true; avahi.enable = true;
podman.enable = true; kvm = {
virtualization = {
enable = true; enable = true;
cpuFlavor = "intel"; cpuFlavor = "intel";
}; };
podman.enable = true;
}; };
} }

View file

@ -3,8 +3,7 @@
imports = [ imports = [
./avahi ./avahi
./docker ./docker
./kvm
./podman ./podman
./virtualization
]; ];
} }

View file

@ -1,10 +1,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.my.system.virtualization; cfg = config.my.system.kvm;
in in
{ {
options.my.system.virtualization = with lib; { options.my.system.kvm = with lib; {
enable = mkEnableOption "virtualization configuration"; enable = mkEnableOption "kvm configuration";
cpuFlavor = mkOption { cpuFlavor = mkOption {
type = with types; nullOr (enum [ "intel" "amd" ]); type = with types; nullOr (enum [ "intel" "amd" ]);

View file

@ -18,7 +18,8 @@ in
enable = true; enable = true;
# Use fake `docker` command to redirect to `podman` # Use fake `docker` command to redirect to `podman`
dockerCompat = true; # but only if docker is not enabled
dockerCompat = !config.my.system.docker.enable;
# Expose a docker-like socket # Expose a docker-like socket
dockerSocket.enable = true; dockerSocket.enable = true;