mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
system/kvm: rename from virtualization
This commit is contained in:
parent
93cc7dcfc5
commit
2350dd913a
4 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./avahi
|
./avahi
|
||||||
./docker
|
./docker
|
||||||
|
./kvm
|
||||||
./podman
|
./podman
|
||||||
./virtualization
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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" ]);
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue