76 lines
2.1 KiB
Nix
76 lines
2.1 KiB
Nix
{ lib, pkgs, inputs, ... }:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
|
|
"${inputs.self}/modules/mizukios/machine.nix"
|
|
"${inputs.self}/modules/mizukios/desktop.nix"
|
|
"${inputs.self}/modules/mizukios/features/system/sbctl.nix"
|
|
"${inputs.self}/modules/mizukios/features/figma-agent.nix"
|
|
"${inputs.self}/modules/mizukios/features/management/cockpit.nix"
|
|
"${inputs.self}/modules/mizukios/features/system/bluetooth.nix"
|
|
"${inputs.self}/modules/mizukios/features/system/graphics.nix"
|
|
"${inputs.self}/modules/mizukios/features/system/virtualisation.nix"
|
|
"${inputs.self}/modules/mizukios/features/steam.nix"
|
|
"${inputs.self}/modules/mizukios/features/remote/sunshine.nix"
|
|
"${inputs.self}/modules/mizukios/features/waydroid.nix"
|
|
"${inputs.self}/modules/mizukios/features/_1password.nix"
|
|
];
|
|
|
|
networking = {
|
|
hostName = "mizuki";
|
|
interfaces = {
|
|
enp3s0 = {
|
|
wakeOnLan.enable = true;
|
|
};
|
|
};
|
|
extraHosts = ''
|
|
192.168.122.40 ubuntu.local
|
|
'';
|
|
};
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."http://broadcast.epc.mizuki.arpa".extraConfig = ''
|
|
@preflight method OPTIONS
|
|
|
|
header {
|
|
Access-Control-Allow-Origin *
|
|
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
|
|
Access-Control-Allow-Headers *
|
|
}
|
|
|
|
respond @preflight "" 204
|
|
|
|
reverse_proxy 127.0.0.1:6769
|
|
'';
|
|
};
|
|
|
|
services.printing = {
|
|
enable = true;
|
|
drivers = with pkgs; [
|
|
cups-filters
|
|
cups-browsed
|
|
pantum-driver
|
|
];
|
|
};
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
hardware.nvidia-container-toolkit.enable = true;
|
|
|
|
programs.obs-studio = {
|
|
# OBS itself is managed by Home Manager; enable the NixOS module so it
|
|
# installs and loads v4l2loopback for the virtual camera.
|
|
enable = true;
|
|
package = null;
|
|
enableVirtualCamera = true;
|
|
};
|
|
|
|
# video0 and video1 are occupied by the physical camera devices.
|
|
boot.extraModprobeConfig = lib.mkForce ''
|
|
options v4l2loopback devices=1 video_nr=2 card_label="OBS Cam" exclusive_caps=1
|
|
'';
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|