initial
This commit is contained in:
10
services/sound.nix
Normal file
10
services/sound.nix
Normal 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
23
services/virtual.nix
Normal 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
13
services/x.nix
Normal 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";
|
||||
}
|
||||
Reference in New Issue
Block a user