format the repo files

This commit is contained in:
2026-04-26 10:27:50 +02:00
parent 92fd97c9a2
commit b319cd93e9
116 changed files with 4726 additions and 4247 deletions

View File

@@ -10,7 +10,6 @@
# └─ ./virtualisation
# └─ default.nix *
#
[
./docker.nix
./qemu.nix

View File

@@ -1,19 +1,21 @@
#
# Docker
#
{ config, pkgs, user, ... }:
{
config,
pkgs,
user,
...
}: {
virtualisation = {
podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true;
enable = true;
autoPrune.enable = true;
dockerCompat = true;
};
};
users.groups.docker.members = [ "${user}" ];
users.groups.docker.members = ["${user}"];
#environment = {
# interactiveShellInit = ''
@@ -21,11 +23,10 @@
# ''; # Alias to easily start container
#};
# environment.systemPackages = with pkgs; [
# docker-compose
# ];
# environment.systemPackages = with pkgs; [
# docker-compose
# ];
}
# USAGE:
# list images (that can be run as container): docker images
# list containers (that are active): docker container ls
@@ -49,4 +50,5 @@
# -v </your/local/assets/>:/www/assets \
# --restart=always \
# b4bz/homer:latest
#
#

View File

@@ -1,12 +1,14 @@
#
# KVM module options amd
#
{ config, pkgs, user, ... }:
{ # Add libvirtd and kvm to userGroups
{
config,
pkgs,
user,
...
}: {
# Add libvirtd and kvm to userGroups
boot.extraModprobeConfig = ''
options kvm_amd nested=0 avic=1 npt=1
''; # Needed to run OSX-KVM
''; # Needed to run OSX-KVM
}

View File

@@ -1,13 +1,16 @@
#
# KVM module options intel
# KVM module options intel
#
{ config, pkgs, user, ... }:
{ # Add libvirtd and kvm to userGroups
{
config,
pkgs,
user,
...
}: {
# Add libvirtd and kvm to userGroups
boot.extraModprobeConfig = ''
options kvm_intel nested=1
options kvm_intel emulate_invalid_guest_state=0
options kvm ignore_nsrs=1
''; # Needed to run OSX-KVM
''; # Needed to run OSX-KVM
}

View File

@@ -1,22 +1,25 @@
#
# Qemu/KVM with virt-manager
# Qemu/KVM with virt-manager
#
{ config, pkgs, user, ... }:
{ # Add libvirtd and kvm to userGroups
users.groups.libvirtd.members = [ "root" "${user}" ];
{
config,
pkgs,
user,
...
}: {
# Add libvirtd and kvm to userGroups
users.groups.libvirtd.members = ["root" "${user}"];
virtualisation = {
libvirtd = {
enable = true; # Virtual drivers
enable = true; # Virtual drivers
onShutdown = "shutdown";
#qemuPackage = pkgs.qemu_kvm; # Default
qemu = {
runAsRoot = false;
};
};
spiceUSBRedirection.enable = true; # USB passthrough
spiceUSBRedirection.enable = true; # USB passthrough
};
programs.dconf.enable = true;
@@ -27,12 +30,13 @@
qemu
OVMF
OVMF-cloud-hypervisor
gvfs # Used for shared folders between linux and windows
gvfs # Used for shared folders between linux and windows
cloud-hypervisor
];
};
services = { # Enable file sharing between OS
services = {
# Enable file sharing between OS
gvfs.enable = true;
};
}