// ML Workstation Profile
// Optimized for machine learning and AI development with GPU acceleration

profile "ml-workstation" {
    description "Machine learning workstation with GPU acceleration and development tools"

    domains {
        // Standard init
        init "systemd"

        // Full runtime with ML frameworks
        runtime "glibc" "cuda" "rocm" "python" "jupyter"

        // Wayland desktop for development
        graphics "wayland" "vulkan" "opencl" "amd" "nvidia" "intel"

        // Audio for multimedia work
        audio "pipewire" "alsa"

        // Standard security
        security "pie" "relro"

        // Performance optimization with debug capability
        optimization "lto" "march-native"

        // Container and virtualization support
        integration "docker" "nipcells" "libvirt"

        // Full networking for distributed training
        network "ipv6" "p2p"

        // Full development toolchain
        developer "debugger" "profiler" "lsp" "repl"
    }

    compiler {
        // Balanced optimization with debug info
        CFLAGS "-O3 -march=native -flto -g -pipe"
        CXXFLAGS "-O3 -march=native -flto -g -pipe"
        LDFLAGS "-Wl,-O1 -Wl,--as-needed -flto"
        MAKEFLAGS "-j16"
        RUSTFLAGS "-C opt-level=3 -C target-cpu=native -C debuginfo=2"
        GOFLAGS "-buildmode=pie"
    }
}
