This commit is contained in:
2025-07-17 19:28:12 +09:00
commit ecb8bc951f
23 changed files with 709 additions and 0 deletions

10
services/sound.nix Normal file
View File

@@ -0,0 +1,10 @@
# sing
{ ... }: {
services.pipewire = {
enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
}

23
services/virtual.nix Normal file
View File

@@ -0,0 +1,23 @@
# container and vm config
{ ... }: {
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
};
programs.virt-manager.enable = true;
services.k3s = {
enable = true;
clusterInit = true;
extraFlags =
"--cluster-cidr=10.42.0.0/16,2a10:3781:25ac:2::/64 --service-cidr=10.43.0.0/16,2a10:3781:25ac:3::/112 --flannel-iface enp5s0";
};
}

13
services/x.nix Normal file
View File

@@ -0,0 +1,13 @@
# X display system config
{ ... }: {
hardware.graphics.enable = true;
services.xserver.enable = true;
services.xserver.wacom.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.open = false;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
services.xserver.xkb.layout = "us";
}